Slide 10
Slide 10 text
Resources
● Resources represent the entities in the application’s domain
○ Customers, Invoices, Products, Players, Games, etc.
○ Can also represent physical objects: Garage doors, cameras, sensors, etc.
● Each resource or collection of resources has a unique URL
○ https://api.example.com/customers
○ https://api.example.com/customers/123
○ https://api.example.com/customers/123/invoices
● Clients work with resource representations
○ JSON
{“first”: “Susan”, “last”: “Smith”, “phone”: “503-111-2222”}
○ XML
SusanSmith503-111-2222