Task Manager is an Api built in Node.js,basic todo app with CRUD functionalities
npm installnpm startHTTP route prefix : http://localhost:3000/api/v1/
| Route | Method | Description |
|---|---|---|
| /tasks | GET | get all the task |
| /task/:id | GET | get a single task |
| /tasks | POST | create a task |
| /task/:id | DELETE | delete a task |
| /task/:id | PUT/PATCH | update a task |
HTTP route : http://localhost:3000/api/v1/tasks
[
{
_id: "6182a4fdf5983834a27fe552",
name: "testing create task",
completed: false,
__v: 0
},
{
_id: "6182d0503a07e858af6cc95a",
name: "flutter app",
completed: true,
__v: 0
}
]HTTP route : http://localhost:3000/api/v1/tasks/:id
{
_id: "6182a4fdf5983834a27fe552",
name: "testing create task",
completed: false,
__v: 0
}HTTP route : http://localhost:3000/api/v1/tasks
{
"name":"flutter widget",
"completed":true
}{
"name": "flutter widget",
"completed": true,
"_id": "61838c5903f59697ca7f1c16",
"__v": 0
}HTTP route : http://localhost:3000/api/v1/tasks/:id
{
"success": true,
"task": {
"deletedCount": 1
}
}Work in progress..- LinkedIn : Connect me on LinkedIn
- Twitter : Follow me
- Instagram : Follow me