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 2, 2019
1 parent
56add90
commit d9a01b1
Showing
3 changed files
with
84 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
This method returns information about the server. | ||
|
||
**URL** | ||
|
||
`/system/status/{status}` | ||
|
||
**Method** | ||
|
||
`POST` | ||
|
||
**Parameters** | ||
|
||
| Parameter Name | Type | Value | Description | ||
| --- | :--------- | :--------- | :--------- | | ||
| status | path | string | This accepts either `down` or `reload` parameters | | ||
|
||
Note: A `down` value causes the server to shutdown. A `reload` value causes | ||
the server to reload its configuration from file. | ||
|
||
**Request body** | ||
|
||
Do not supply a request body with this method. | ||
|
||
**Response** | ||
|
||
If successful this method causes the server to change its status. | ||
|
||
**Sample Call** | ||
|
||
```json | ||
GET /api/v1beta1/system/status/reload | ||
{ | ||
|
||
} | ||
|
||
HTTP/1.1 200 OK | ||
{"status": "200", "message": "Reloaded configuration from file."} | ||
``` |
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