- git clone https://github.com/CsCamp-org/note-app.git
- cd note-app
- npm install
- node app.js
Server is up and running at localhost:4000
Rest APIs
- Create Todos - POST /todos body:
{
"id": "1",
"task":"first task"
}
-
Retrieve all todos - GET /todos
-
Get a todo by its id - GET /todos/:id
-
Update a todo by its id - PUT /todos/:id
body:
{
"id": "1",
"task":"update first task"
}
- Delete a todo by its id - DELETE /todos/:id