REST is a way of designing an HTTP API: URLs name things, and
the method says what to do with them.
Rest is a small API built
that way: a collection, /items, of JSON items that anyone can
read and write. Try each step below, and watch the collection change.
Notes.
| URL | GET | POST | PUT | DELETE |
|---|---|---|---|---|
/items | list them | add one; the server picks the id | (405) | (405) |
/items/milk | read it | (405) | create or replace it | remove it |
(press Send)
GET /items)…