NodeJs REST-API example using Restify + Babel ES6 + Mongoose ORM for MongoDB
- Run
git clone https://github.com/askmhs/restify-mongoose-example.git - CD to
restify-mongoose-example - Run
npm installto install the modules and dependencies - Run
npm startto start the server
- [GET]
/user=> Get all user data - [GET]
/user/:id=> Get detail user - [POST]
/user=> Create new user data - [PUT]
/user/:id=> Update user data by id