HuntJS RESTfull API for mongoosejs models
Abstract Mongoose to REST interface CRUD. In MVC paradigm this module is a way to generate view (as JSON object) and controller for this particular model. It is worth mention, that access control checks are performed via static Active Record methods and instance Active Record methods mongoose model against the current authenticated user. It is nodejs implementation of awesome module of (http://www.symfony-project.org/plugins/sfDoctrineRestGeneratorPlugin) This work is inspired by http://www.restapitutorial.com/. This module is intended to work with HuntJS framework of v 0.1.x branch.
var Hunt =hrw =hunt =;hunt;//do some magic;Hunt;
mountPoint- string, see http://expressjs.com/4x/api.html#router, default is
modelName- string, see http://huntjs.herokuapp.com/documentation/model.html
statics- array of static Active Record methods exported to rest api
methods- array of instance Active Record methods exported to rest api