Objective: To design and implement a simple Notes Management Web Application using NodeJs and Express.
Framework : NodeJs, ExpressJs Database : MongoDB REST API
git clone https://github.com/ProgrammingWithSid/NotesManagement-backend
npm install
- GET /user/register : Register a User
- POST /user/login: Login a user.
- GET /notes/getAllNotes : Fetch all notes of a particular user.
- POST /notes/createNote: Create a Note.
- PUT /notes/updateNote/:id: Update a Note by ID
- DELETE /notes/deleteNote/:id: Delete a Note by ID.
- PUT /notes/toggleNote/:id: Toggle to Read and unRead a task by ID.
GET /user/registerBody :
{
"first_name": "Satender",
"last_name": "kumar",
"email":"satenderk8700@gmail.com",
"password":"12345678"
}
GET /user/loginBody :
{
"email": "satenderk8700@gmail.com",
"password": "12345678"
}
GET /notes/getAllNotesHeader :
Cookie: auth-token "access_token"
POST /notes/createNoteHeader :
Cookie: auth-token "access_token"
Body :
{
"title": "Testing Add Note",
"description": "Now testing add Note"
}
PUT /notes/updateNote/:id| Parameter | Type | Description |
|---|---|---|
id |
id |
Required. |
Header :
Cookie: auth-token "access_token"
Body :
{
"taskName": "Testing Update View",
"description": "Now testing Update view"
}
DELETE /notes/deleteNote/:id| Parameter | Type | Description |
|---|---|---|
id |
id |
Required. |
Header :
Cookie: auth-token "access_token"
- LinkedIn: https://www.linkedin.com/in/satender-kumar-600bb3179/
- Leetcode: https://leetcode.com/satenderk8700
- Email: satenderk8700@gmail.com
Name: Satender Kumar
Thank You