Skip to content

Instantly share code, notes, and snippets.

@cianclarke
Created August 23, 2016 15:22
Show Gist options
  • Save cianclarke/c84b54dbc074a4f3d46234643cd7c785 to your computer and use it in GitHub Desktop.
Save cianclarke/c84b54dbc074a4f3d46234643cd7c785 to your computer and use it in GitHub Desktop.
FORMAT: 1A
HOST: https://cclarke-knicvuxlxposc3rdani5lso7-demos-dev.mbaas2.tom.redhatmobile.com
# Login Service
Login service example
# Group Entries Tracker API
# login [/login]
'Login' endpoint.
## login [POST]
'Hello world' endpoint.
+ Request (application/json)
+ Body
{
"username": "world",
"password" : "secrets"
}
+ Response 200 (application/json)
+ Body
{
"token": "1a"
}
# entry [/entry]
'Add entry' endpoint.
## entry [POST]
'Add entry' endpoint.
+ Request (application/json)
+ Body
{
"concentration": 5
}
+ Response 200 (application/json)
+ Body
{
"token": "1a"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment