Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A simple DSL for implementing the Gateway pattern for RESTful services.
Tree: 873049079f

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


The beginnings of a node-based REST proxy as an implementation of the Gateway pattern.

The goal is to support parallelized and/or sequential REST calls, and to extract pieces of the downstream responses into an aggregate object suitable for a response.

Target Interface

recipe = Proxie.newRecipe(); recipe.against.get("/entity/{id}/child/{id2}") .do .inParallel( Proxie.get("{id}") .acceptJSON .extract("entity", function(result) { return; }), Proxie.get("{id2}") .acceptXML .extract("child", function(result) { return; }) ).andWaitForAll then("http://localhost/authorize").withFormBody({ "CHILD-ID" : Proxie.flash("child").resourceId, "USER-ID" : Proxie.requestHeader("X-AUTHENTICATION") }) .acceptJSON .abortIf(function(result) { return result.status != "success"; }) ) .return({ entity: Proxie.flash("entity"), child: Proxie.flash("child") }) .asJSEND;

Something went wrong with that request. Please try again.