Skip to content

Instantly share code, notes, and snippets.

@dfeist
Created April 4, 2012 15:14
Show Gist options
  • Save dfeist/2302513 to your computer and use it in GitHub Desktop.
Save dfeist/2302513 to your computer and use it in GitHub Desktop.
<flow name="createOrder" >
<http:inbound-endpoint address="http://localhost/api/order" />
<component class="org.my.CreateOrderComponent" />
<http:response-builder status="201" contentType="text/plain">
<http:location value="#[http.context.uri]/#[orderID]"/>
<set-payload value="Order #[orderID] added."/>
</http:response-builder>
<flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment