express-rest-api-generator
v1.3.4
Published
express mountable app for mongoose routes with generators for mongoose model embedded statics
Downloads
17
Maintainers
Readme
express-rest-generator
Generates RESTful endpoints based on Mongoose schemas. Does things as you'd expect, GET
requests are treated as a collection.find()
query, if an :id
param is provided to the end point -- it will do a collection.findById()
. POST
, PUT
, PATCH
http methods will either insert or update a document, depending if an :id
param is provided to the end point. DELETE
http method is self descriptive.