Skip to content

NodeJs REST-API example using Restify + Babel-ES6 + mongoose

Notifications You must be signed in to change notification settings

askmhs/restify-mongoose-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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