Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.09 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.09 KB

NodeTask

For installing dependencies

npm install express mongoose mongodb assert shortid body-parser

For installing dev dependencies

npm install -D nodemon

To run the application

npm run dev

Create user profile

Use Postman to do a post request on : http://localhost:3000/add_user
To pass details of the user, write in this format in the body section and ensure the setings to be on raw and doc type json : {"firstname" : "", "lastname" : "", "email" : "", "phone" : "", "address" : ""}

Update user profile

Put request on : http://localhost:3000/update_user/
Pass data in the same format as in add_user

Get list of all profiles

Get request on : http://localhost:3000/view_users

Get a specific user profile

Get request on : http://localhost:3000/view_users/

Delete an existing profile

Delete request on : http://localhost:3000/delete_user/

Create a copy of user profile

Post request on : http://localhost:3000/copy_user/