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 19:35:20 +00:00
|
|
|
"title": "-2!!!!NEW!!!!",
|
2023-07-07 22:54:57 +00:00
|
|
|
"description": "Go to the gym at 8pm",
|
2023-07-08 19:35:20 +00:00
|
|
|
"due_date": "2023-07-09T19:00:00.891Z"
|
2023-07-07 22:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
### update request
|
2023-07-08 22:34:20 +00:00
|
|
|
PUT http://localhost:3000/todo/64a9e3987a2dba152b1e44b0
|
2023-07-07 22:54:57 +00:00
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"title": "test",
|
|
|
|
"description": "TEST NEW!",
|
2023-07-08 22:34:20 +00:00
|
|
|
"due_date": "2023-07-09T19:00:00.891Z"
|
2023-07-07 22:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
### delete *ALL* request
|
|
|
|
DELETE http://localhost:3000/todo/
|
|
|
|
|
|
|
|
### delete request
|
|
|
|
DELETE http://localhost:3000/todo/{ID}
|