Skip to content

Instantly share code, notes, and snippets.

@ckumar1
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save ckumar1/09bee32b5a17e978eeb2 to your computer and use it in GitHub Desktop.

Select an option

Save ckumar1/09bee32b5a17e978eeb2 to your computer and use it in GitHub Desktop.
JSON request/response structure for successful authentication and registration via the API
//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"
}]
}
//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