/learn-hapijs

A simple REST API using Hapi.js and MongoDB

Primary LanguageJavaScript

Learn Hapi.js

A simple REST API using Hapi.js and MongoDB

Usage

Installation

Clone the repo and install npm module

npm install

Run app

npm start

Routes

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} -

Links