++ verify in API

This commit is contained in:
Nico Schottelius 2018-10-26 19:48:15 +02:00
parent 9a680e6956
commit 05decb388e
1 changed files with 37 additions and 0 deletions

View File

@ -24,10 +24,30 @@ In development, pre production.
Verify whether the requesting app is authenticated. This is only
allowed to be used for trusted appids.
Returns a JSON object:
Either
```
{
status: "OK",
}
```
OR
```
{
status: "FAIL",
}
```
### POST: /verify
Not sure if this one will be publicly available.
Request JSON object:
```
{
version: "1",
@ -38,6 +58,23 @@ Not sure if this one will be publicly available.
}
```
Response JSON object:
Either
```
{
status: "OK",
}
```
OR
```
{
status: "FAIL",
}
```
## Usage: REST
- Use an existing token to connect to the service