REST

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.

URLGETPOSTPUTDELETE
/itemslist themadd one; the server picks the id(405)(405)
/items/milkread it(405)create or replace itremove it

Try

Read
Write
Go wrong

The request

The code


  

The response

(press Send)

The collection now (GET /items)

…