TodoSystemMicroService-NodeJS/request.http
2023-07-13 11:19:22 +03:00

29 lines
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-13T19:00:00.891Z"
}
### update request
PUT http://localhost:3000/todo/64aa7b55f73a81f5e374663b
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}