2023-07-07 22:54:57 +00:00
|
|
|
|
|
|
|
### Get All Request
|
|
|
|
GET http://localhost:3000/todo/{ID}
|
|
|
|
|
|
|
|
### create new request, YYYY-MM-DD HH:mm:ss.ss
|
|
|
|
POST http://localhost:3000/todo
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
2023-07-08 08:39:54 +00:00
|
|
|
"title": "Go to the gymNEW!!!",
|
2023-07-07 22:54:57 +00:00
|
|
|
"description": "Go to the gym at 8pm",
|
2023-07-08 17:52:30 +00:00
|
|
|
"due_date": "2023-07-08T19:00:00.891Z"
|
2023-07-07 22:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
### update request
|
|
|
|
PUT http://localhost:3000/todo/{ID}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"title": "test",
|
|
|
|
"description": "TEST NEW!",
|
|
|
|
"due_date": "2020-12-12"
|
|
|
|
}
|
|
|
|
|
|
|
|
### delete *ALL* request
|
|
|
|
DELETE http://localhost:3000/todo/
|
|
|
|
|
|
|
|
### delete request
|
|
|
|
DELETE http://localhost:3000/todo/{ID}
|