RESTful api built using Node.js and Hapi.js