Skip to content

Instantly share code, notes, and snippets.

@laser
Last active August 29, 2015 14:11
Show Gist options
  • Save laser/118776276c987e8ff0cf to your computer and use it in GitHub Desktop.
Save laser/118776276c987e8ff0cf to your computer and use it in GitHub Desktop.
Add validation
application input: HttpInput (HTTP request body)
|
|
+--> wrap-json-body: Hash Map
|
|
+--> post-notes-handler: Hash Map
|
|
+--> validate-note: [Hash Map, Error String] (present? correct length?)
|
|
+--> ok: [Hash Map] (HTTP response, status code 200)
|
|
+--> wrap-json-response: JSON String
|
|
+--> application output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment