yarn
yarn start
yarn start:dev
yarn test
yarn test:cov
- Todo
- Create
- Get List
- Get by ID
- Update by ID
- Delete by ID
- Status
- TODO
- DOING
- DONE
- Improve README
- Dates
- createdDate: string
- startDate?: string
- dueDate?: string
- updatedDate: string
- deletedDate?: string
- Todo Archive Status
- API Versioning
- Improve Response
- Pagination
- Filter in Get List
- Rename into Task
curl --location --request GET 'localhost:3000/todo'
Response
[
{
"id": 0,
"name": "Test Title 1",
"description": "Test Desc 001",
"status": "TODO"
},
{
"id": 1,
"name": "Test Title 2",
"description": "Test Desc 002",
"status": "TODO"
}
]
curl --location --request GET 'localhost:3000/todo/0'
Response
{
"id": 0,
"name": "Test Title 1",
"description": "Test Desc 001",
"status": "TODO"
}
curl --location --request POST 'localhost:3000/todo' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Test Title 1",
"description": "Test Desc 001"
}'
Request
{
"name": "Test Title 1",
"description": "Test Desc 001"
}
Response
{
"id": 0,
"name": "Test Title 1",
"description": "Test Desc 001",
"status": "TODO"
}
curl --location --request PATCH 'localhost:3000/todo/0' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "DOING"
}'
Request
{
// "name": "Test Title 99",
// "description": "Test Desc 099",
"status": "DOING" // TODO, DOING, DONE
}
Response
{
"id": 0,
"name": "Test Title 1",
"description": "Test Desc 001",
"status": "DOING"
}
curl --location --request DELETE 'localhost:3000/todo/0'
Response
Deleted Todo ID: 0 success