Create RESTful API for simple todo app. The following endpoints are being used by the frontend app and need to be implemented.
POST - api.php/lists
{
"name": "Todo List Name",
"participants": [
"[email protected]",
"[email protected]",
"[email protected]"
]
}
DELETE - api.php/lists/:list-id
None
GET - api.php/lists/:list-id/todos
None
POST - api.php/lists/:list-id/todos
{
"id": "5270138f-865b-4835-976e-6ff132ee3fab",
"title": "Sample Todo Item",
"completed": false
}
PUT - api.php/lists/:list-id/todos/:item-id
{
"id": "5270138f-865b-4835-976e-6ff132ee3fab",
"title": "Sample Todo Item",
"completed": false
}
PATCH - api.php/lists/:list-id/todos
{
"completed": false
}
DELETE - api.php/lists/:list-id/todos/:item-id
None
DELETE - api.php/lists/:list-id/todos?completed
None
It's completely runnable with docker and make
- git clone
make build
make unit-test
- to run unit-testsmake start
(Use http://localhost:8080/index.html to open FE in browser, Email delivery should also work. I checked it many times)make stop
- after you finished testing