A simple REST API using Hapi.js and MongoDB
Clone the repo and install npm module
npm install
npm start
Description | Http | URL | Body |
---|---|---|---|
Create | POST | http://localhost:3000/person | { "firstName": "Palash", "lastName": "Mondal" } |
Read All | GET | http://localhost:3000/people | - |
Read One | GET | http://localhost:3000/person/{id} | - |
Update | PUT | http://localhost:3000/person/{id} | { "firstName": "Pal" } |
Delete | DELETE | http://localhost:3000/person/{id} | - |