Skip to content

rashisr19/UserApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published