resto: a little api playground that just might work…


var service = require('resto.service');
var pipeline = require('resto.pipeline');
var http = require('resto.httpserver');
var authenticator = require('resto.middleware.authn');
var authorizer = require('resto.middleware.authr');
var resolver = require('resto.middleware.resolver');
var invoker = require('resto.middleware.invoker');
var converter = require('resto.middleware.hal');
//- dsl
var withMany = require('resto.realtionships').hasMany;
var ownedBy = require('resto.realtionships').hasOne;
var whoHas = require('resto.realtionships').hasOne;
//- resources
var farm = require('./resources/farm');
var farmer = require('./resources/farmer');
var appleOrchard = require('./resources/appleOrchard');
var apples = require('./resources/apple');
var appleFarm = service.compose(farm)
// .use(liveupdate)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: