- goto https://github.com/dctacademy/tasks-fs
- run the command
git clone https://github.com/dctacademy/tasks-fs.git - go inside the tasks-fs folder
- install the packages with
npm install - run the backend server with
node app.js
BASE URL - http://localhost:3033
| # | action | method | url | request | response | authentication |
|---|---|---|---|---|---|---|
| 1. | lists all tasks | GET | /api/tasks | - | empty array or array of objects |
no auth |
| 2. | create a task | POST | /api/tasks |
|
|
no auth |
| 3. | get a task | GET | /api/tasks/:id | - |
|
no auth |
| 4. | update a task | PUT | /api/tasks/:id |
|
|
no auth |
| 5. | delete a task | DELETE | /api/tasks/:id | - |
|
no auth |