Check out the corresponding blog post "How to create a REST API with Hapi" if you are interested in getting to know more about creating REST APIs with Hapi.
$ npm install
$ npm start
A simple pizza REST API:
http://localhost:1337
GET /pizza
POST /pizza
GET /pizza/{id}
POST /pizza/{id}
PATCH /pizza/{id}
DELETE /pizza/{id}