This app illustrates the creation of a DB-backed REST API which implements the full CRUDL set of operations.
'Todos' endpoint.
List all todos
-
Request (application/json)
-
Response 200 (application/json)
- Body [ { "name" : "aTodo"} ]
Create todo entry
-
Request (application/json)
- Body { "name": "My new todo" }
-
Response 200 (application/json)
- Body { "name": "My new todo" }
Operations on an individual todo entry, as identified by guid {id}
.
- Parameters
- id - Id of the todo item being operated on
Read operation
-
Request (application/json)
-
Response 200 (application/json)
-
Body
{ "name" : "My todo", }
-
Updates a TODO entry by ID
-
Request (application/json)
-
Body
{ "name" : "My update to this todo" }
-
-
Response 200 (application/json)
-
Body
{ "name" : "My update to this todo" }
-
Removes the todo entry specified by id
-
Request (application/json)
-
Response 200 (application/json)
- Body