TodoSystemMicroService-NodeJS/request.http
2023-07-09 01:34:20 +03:00

29 lines
No EOL
616 B
HTTP

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