REST API task
API endpoints :
- POST : /addNote - data to be stored in Body of the request
- GET : /getNotes - fetch all the notes in the DB
- GET : /getNote - store note id in the params - fetch note details of a particular note
- PATCH : /updateNote - store note id in the params and update data in body - update a particular note
- DELETE : /deleteNote - store note id in the params - delete a particular note
Packages used :
- "dotenv": "^16.0.1"
- "ejs": "^3.1.8",
- "express": "^4.18.1",
- "mongoose": "^6.5.1",
- "mongoose-delete": "^0.5.4"