29 lines
577 B
Text
29 lines
577 B
Text
|
|
||
|
### 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
|
||
|
|
||
|
{
|
||
|
"title": "Go to the gym",
|
||
|
"description": "Go to the gym at 8pm",
|
||
|
"due_date": "2023-07-08 01:21: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}
|