v0.0.6 Very Beta
Generate powerful RESTful JSON APIs
npm install tranquil
Note: This API may change in the future
Create a Tranquil server
var tranquil = ;var server = tranquil;
Note: See all server options below
Add some database validators
Add some RESTful resources
Add a special user RESTful resource
server instance which can listen on a port.
Adds a RESTful resource to the server instance
schema: A Mongoose Schema object.
Note: String validators and property types get replaced with tranquil validators and resources respectively
access: An object which defining the access control list.
databaseMiddleware: Mongoose middleware definitions.
expressMiddleware: Express middleware definitions.