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 install
to install the modules and dependencies - Run
npm start
to 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