forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fonoster Team
committed
Jun 1, 2019
1 parent
d463102
commit 88d1882
Showing
6 changed files
with
119 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Credentials | ||
|
||
Gets a token for subsequent API calls | ||
|
||
**URL** | ||
|
||
`/credentials` | ||
|
||
**Method** | ||
|
||
`GET` | ||
|
||
**URL Params** | ||
|
||
None | ||
|
||
**Data Params** | ||
|
||
None | ||
|
||
**Success Response** | ||
|
||
| Code | Content| | ||
| --- |:------ | | ||
| 200 OK | JWT Token | | ||
|
||
**Error Response** | ||
|
||
| Code | Content | | ||
| --- | :--------- | | ||
| 401 UNAUTHORIZED | `{ status: "401", message : "You are unauthorized to make this request." }`| | ||
|
||
**Sample Call** | ||
|
||
```json | ||
GET /api/{apiversion}/credentials | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiJ9.O7hC-ta225epRQlJZO44WC-l2cWohKnJ8lkmlOQpw8Z_xYiwJ6-qDUhHeJEZH9DmwIwz_jD77sj1kQUkXHsbOg" | ||
``` | ||
|
||
**Notes** | ||
|
||
You must send a basic authentication header with this request |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Location | ||
|
||
Gets a list of registered devices | ||
|
||
**URL** | ||
|
||
`/location` | ||
|
||
**Method** | ||
|
||
`GET` | ||
|
||
**URL Params** | ||
|
||
None | ||
|
||
**Data Params** | ||
|
||
None | ||
|
||
**Success Response** | ||
|
||
| Code | Content | | ||
| --- |:------ | | ||
| 200 | | | ||
|
||
**Sample Call** | ||
|
||
```json | ||
GET /api/{apiversion}/location | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiJ9.O7hC-ta225epRQlJZO44WC-l2cWohKnJ8lkmlOQpw8Z_xYiwJ6-qDUhHeJEZH9DmwIwz_jD77sj1kQUkXHsbOg" | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Routr API version is currently `v1beta1`. We continue to improve the API, resource definition, and other artifacts until we reach a final version. We can then establish an update policy to ensure backward compatibility. Until then keep an eye on this document. The endpoint for the API is as follows: | ||
|
||
`/api/{apiversion}` |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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