Last active
August 29, 2015 14:11
-
-
Save laser/8d43fb8fef039dd9af68 to your computer and use it in GitHub Desktop.
Connecting to a database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application input: HttpInput (HTTP request body) | |
| | |
| | |
+--> wrap-json-body: Hash Map | |
| | |
| | |
+--> post-notes-handler: Hash Map | |
| | |
| | |
+--> validate-note: [Hash Map, Error String] | |
| | |
| | |
+--> create-note: [ID, Error String] (from db) | |
| | |
| | |
+--> assoc: Hash Map (add id from db) | |
| | |
| | |
+--> 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