Skip to content

mobaarok/expressjs-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express JS Simple API

This is a simple api to add, read, edit, delete contact list.

To Run it in local machine

  • first clone this project using git
git clone [git repo url]
  • and go to project root folder
  • open terminal and run this command
npm install && npm start

** Test the api endponit in postman **

API Route List -

  1. Get All Contacts- [GET] http://localhost:3000/api/contacts

  2. Store New Contact- [POST] http://localhost:3000/api/contact

  3. Get Single Contact- [GET] http://localhost:3000/api/contact/id

  4. Delete Contact- [DELETE] http://localhost:3000/api/contact/id

  5. Update Contact- [PUT] http://localhost:3000/api/contact/id

Useful Link:

Postman Collections for this api - https://www.getpostman.com/collections/5c2a490dcd3e36d6f55f

About

A Simple Contact API, Develop by ExpressJS & MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published