-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiary.apib
44 lines (28 loc) · 920 Bytes
/
apiary.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FORMAT: 1A
HOST: http://devapi.a3lan.com
# A3lan
A3lan is a API allowing consumers of the A3lan mobile apps to interact with the services.
## API Token [/token]
### Generate Token [POST]
You must generate a token for any session before interacting with the API. If you have an existing token you'll be able to continue the session using that.
+ Request (application/json)
{
"grant_type": "password"
}
+ Body
{
"username": "username",
"password": "password"
}
+ Response 200 (application/json)
+ Body
{
"token": "GUID",
"token_type": "bearer",
"expires_in": 86399 //24 Hours,
"url": "http://devapi.a3lan.co.uk"
}
## Sign Up [/user/signup]
### Sign Up [POST]
## Login [/user/login]
### Login [GET]