Allows the to create and manage a simple todo application using NodeJS.
Request
- Set method type to POST /users
- Add to the header
content-type: application/json
- Add the example JSON code below.
{
"email": "[email protected]",
"password": "mypassword"
}
Expected response
{
"id": 1,
"email": "[email protected]",
"updatedAt": "2018-01-10T18:46:00.655Z",
"createAt": "2018-01-10T18:46:00.655Z"
}
Request
- Set method type POST /user/login
- Add to the header
content-type: application/json
- Add the example JSON code below.
{
"email": "[email protected]",
"password": "mypassword"
}
Expected response
{
"id": 1,
"email": "[email protected]",
"updatedAt": "2018-01-10T18:46:00.655Z",
"createdAt": "2018-01-10T18:46:00.655Z"
}
Request
- Set method type DELETE /user/login
- Add to the header `content-type:
Expected response
- header response status code 204
This section allows the users to add, delete, update, and get their todos.
- use method POST /todos
- GET /todos
- GET /todo/{id}
- DELETE /todo/{id}
- PUT /todo/{id}