Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 523 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 523 Bytes

Restify Mongoose Example

NodeJs REST-API example using Restify + Babel ES6 + Mongoose ORM for MongoDB

  1. Run git clone https://github.com/askmhs/restify-mongoose-example.git
  2. CD to restify-mongoose-example
  3. Run npm install to install the modules and dependencies
  4. Run npm start to start the server

Endpoints

  • [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