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
Showing
23 changed files
with
146 additions
and
21 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
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
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,40 @@ | ||
This method returns the servers' configuration. | ||
|
||
**URL** | ||
|
||
`/system/config` | ||
|
||
**Method** | ||
|
||
`GET` | ||
|
||
**Parameters** | ||
|
||
| Parameter Name | Type | Value | Description | ||
| --- | :--------- | :--------- | :--------- | | ||
| full | query | boolean | If set to `true` it will return a merged configuration between defaults and explicit values| | ||
|
||
**Request body** | ||
|
||
Do not supply a request body with this method. | ||
|
||
**Response** | ||
|
||
If successful this method returns the current configuration from the server. | ||
|
||
**Sample Call** | ||
|
||
```json | ||
GET /api/{apiversion}/system/config | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
{ | ||
"status": 200, | ||
"message": "Successful request", | ||
"data": { | ||
... | ||
} | ||
} |
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,41 @@ | ||
This method updates the servers' configuration. | ||
|
||
**URL** | ||
|
||
`/system/config` | ||
|
||
**Method** | ||
|
||
`PUT` | ||
|
||
**Parameters** | ||
|
||
This method does not receive any parameters. | ||
|
||
**Request body** | ||
|
||
A file containing the [servers' configuration](/configuration/general) in `json` format. | ||
|
||
**Response** | ||
|
||
The changes will take effect on the next time the instance restart. | ||
|
||
**Sample Call** | ||
|
||
```json | ||
PUT /api/{apiversion}/config | ||
{ | ||
"apiVersion": "v1beta1", | ||
"spec": { | ||
"dataSource": { | ||
"provider": "redis_data_provider" | ||
} | ||
} | ||
} | ||
|
||
HTTP/1.1 200 OK | ||
{ | ||
"status": "200", | ||
"message": "Successful 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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Pings an instance of Routr engine. | ||
|
||
**URL** | ||
|
||
`/system/status` | ||
|
||
**Method** | ||
|
||
`GET` | ||
|
||
**Parameters** | ||
|
||
This method does not receive any parameters. | ||
|
||
**Request body** | ||
|
||
Do not supply a request body with this method. | ||
|
||
**Response** | ||
|
||
If successful this method will return a `status = 200`. A client implementing | ||
this method can assumed that no answer or a bad answer means that the server | ||
us down or "unhealthy." | ||
|
||
**Sample Call** | ||
|
||
```json | ||
GET /api/{apiversion}/system/status | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
{ | ||
"status": "200", | ||
"message": "Successful request", | ||
"data": "up" | ||
} | ||
``` |
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
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
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