Skip to content

CsCamp-org/note-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Rest API from scratch in Node.js

Steps to use this code base
  1. git clone https://github.com/CsCamp-org/note-app.git
  2. cd note-app
  3. npm install
  4. node app.js

Server is up and running at localhost:4000

Rest APIs

  1. Create Todos - POST /todos body:
{
  "id": "1",
  "task":"first task"
}
  1. Retrieve all todos - GET /todos

  2. Get a todo by its id - GET /todos/:id

  3. Update a todo by its id - PUT /todos/:id

body:

{
  "id": "1",
  "task":"update first task"
}
  1. Delete a todo by its id - DELETE /todos/:id

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published