Last active
August 29, 2015 14:01
-
-
Save ckumar1/09bee32b5a17e978eeb2 to your computer and use it in GitHub Desktop.
JSON request/response structure for successful authentication and registration via the API
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
| //POST https://fridgepantry.herokuapp.com/api/access | |
| // Request | |
| { | |
| "email": "user@email.com", | |
| "password": "password123" | |
| } | |
| // Response | |
| { | |
| "success": 1, | |
| "user": [{ | |
| "uid": 1, | |
| "email": "user@email.com", | |
| "name": "sample user" | |
| }] | |
| } |
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
| //POST https://fridgepantry.herokuapp.com/api/access/new | |
| // Request | |
| { | |
| "name": "sample user", | |
| "email": "user@email.com", | |
| "password": "password123" | |
| } | |
| // Response | |
| { | |
| "success": 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment