GET /todos
POST /todos
DELETE /todos/<int:position>Will return the list of all todos like this:
[
{
"done": true,
"label": "Sample Todo 1"
},
{
"done": true,
"label": "Sample Todo 2"
}
]It's going to add a new todo to the list, it will receive the following request body:
{
"done": true,
"label": "Sample Todo 1"
}And return the updated list of todos.
It's going to remove one todo based on a given position at the end of the url, and return the updated list of todos.