Skip to content

Instantly share code, notes, and snippets.

@laser
Last active August 29, 2015 14:11
Show Gist options
  • Save laser/f99796f5edf833d3c9be to your computer and use it in GitHub Desktop.
Save laser/f99796f5edf833d3c9be to your computer and use it in GitHub Desktop.
Add Ring JSON middleware
application input: HttpInput (HTTP request body)
|
|
+--> wrap-json-body: Hash Map (deserialized from JSON)
|
|
+--> post-notes-handler: Hash Map (returns what it's been passed)
|
|
+--> response: Hash Map (a shell HTTP response)
|
|
+--> wrap-json-response: JSON String (serialized from Hash Map)
|
|
+--> application output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment