Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.14 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.14 KB

Backend API for tasks app

Installation

  • 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

API Documentation

BASE URL - http://localhost:3033

Tasks Resource

# 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
  • id
  • title
  • status
  • id
  • title
  • status
no auth
3. get a task GET /api/tasks/:id -
  • id
  • title
  • status
no auth
4. update a task PUT /api/tasks/:id
  • id
  • title
  • status
  • id
  • title
  • status
no auth
5. delete a task DELETE /api/tasks/:id -
  • id
  • title
  • status
no auth