Begin to introduce status
This commit is contained in:
parent
05decb388e
commit
c64b2120b0
1 changed files with 30 additions and 16 deletions
46
README.md
46
README.md
|
@ -42,6 +42,12 @@ OR
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage: REST
|
||||||
|
|
||||||
|
- Use an existing token to connect to the service
|
||||||
|
- All REST based messages: JSON
|
||||||
|
|
||||||
### POST: /verify
|
### POST: /verify
|
||||||
|
|
||||||
Not sure if this one will be publicly available.
|
Not sure if this one will be publicly available.
|
||||||
|
@ -75,11 +81,6 @@ OR
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage: REST
|
|
||||||
|
|
||||||
- Use an existing token to connect to the service
|
|
||||||
- All REST based messages: JSON
|
|
||||||
|
|
||||||
### POST /app/register
|
### POST /app/register
|
||||||
|
|
||||||
Register a new app. Returns an app ID.
|
Register a new app. Returns an app ID.
|
||||||
|
@ -96,10 +97,21 @@ Request JSON object:
|
||||||
|
|
||||||
Response JSON object:
|
Response JSON object:
|
||||||
|
|
||||||
|
```
|
||||||
{
|
{
|
||||||
|
status: "OK",
|
||||||
appid: "UUID of your app",
|
appid: "UUID of your app",
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
status: "FAIL",
|
||||||
|
error: "Reason for failure"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### GET /app
|
### GET /app
|
||||||
|
|
||||||
|
@ -115,17 +127,19 @@ Request JSON object:
|
||||||
|
|
||||||
Response JSON object:
|
Response JSON object:
|
||||||
|
|
||||||
[
|
{
|
||||||
{
|
status: "OK",
|
||||||
name: "name of your web app"
|
apps: [
|
||||||
appid: "UUID of your app",
|
{
|
||||||
},
|
name: "name of your web app"
|
||||||
{
|
appid: "UUID of your app",
|
||||||
name: "name of your second web app"
|
},
|
||||||
appid: "UUID of your second app",
|
{
|
||||||
}
|
name: "name of your second web app"
|
||||||
]
|
appid: "UUID of your second app",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
### GET /app/UUID
|
### GET /app/UUID
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue