Created
August 23, 2016 15:22
-
-
Save cianclarke/c84b54dbc074a4f3d46234643cd7c785 to your computer and use it in GitHub Desktop.
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
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