- Step to install npm package.
npm install
- Step to create .env
create .env file and add DB_CONNECTION=dbURI, replace dbURI with mongodb credentials
- Step to run
node app.js
- Create a list: POST
http://localhost:3000/api/v1/list/new
- Show all lists: GET
http://localhost:3000/api/v1/list
- Update a list: PUT
http://localhost:3000/api/v1/list/[id]
- Delete a list: DEL
http://localhost:3000/api/v1/list/[id]
Example Body in JSON
{
"name":"Learn python",
"description":"refer course in udemy"
}