A full Restful CRUD API for managing contacts written in Node.js, Express and MongoDB
- Install dependencies
npm install
- Run Server
node server.js
You can browse the api at: http://localhost:5000
Here are the following API endpoints:
- Create a new contact: POST http://localhost:5000/contacts
- Retrieve all contacts: GET http://localhost:5000/contacts
- Retrieve a single contact with contactId: GET http://localhost:5000/contacts/{contactId}
- Update a Contact with contactId: PUT http://localhost:5000/contacts/{contactId}
- Delete a Contact with contactId: DELETE http://localhost:5000/contacts/{contactId}