Resources and URLs
Lesson 5 of 20 · API.Micro
REST names things with nouns: a collection and the items inside it.
{"id": 2, "name": "Latte", "price": 4, "category": "coffee"},
{"id": 3, "name": "Cappuccino", "price": 3.8, "category": "coffee"},
{"id": 4, "name": "Mocha", "price": 4.5, "category": "coffee"}
In REST every thing is a resource with its own URL. /v1/menu is the collection of all menu items.
Check yourself
Which URL is RESTful?
Do it in the browser: a real REST APIs tool, a short mission and instant feedback. No install.
Start this lesson — free