express-rest-orm
express-rest-orm generates an express Router
that serves a list of sequelize Models via a
full-featured REST api.
getting started
Get the latest version of express-rest-orm via npm:
npm install [--save] express-rest-orm
Then use it to serve your sequelize Models:
var app = require('express')()
, Sequelize = require('sequelize')
, orm = new Sequelize('example', ...)
, models = [orm.define('foo', ...), orm.define('bar', ...)];
app.use('/api/v1', require('express-rest-orm')(models));
running the tests
Tests are the main source of documentation for this module. They are
kept readable so that they will not only pass but also convey information
to the reader.
npm test
will run all tests and give a spec
as well as coverage information.
See the latest travis build
if you don't want to run the tests locally.
feature list
This is both a documentation of the features of express-rest-orm
and a backlog of planned improvements. It is more or less copied
from express-persistent-resource.