diff --git a/docs/api/sys/info.md b/docs/api/sys/info.md index 5f5c6ef42..b5c64e6e7 100644 --- a/docs/api/sys/info.md +++ b/docs/api/sys/info.md @@ -29,7 +29,6 @@ GET /api/v1beta1/system/info } HTTP/1.1 200 OK - { "status":200, "message":"Successful request", diff --git a/docs/api/sys/logs.md b/docs/api/sys/logs.md new file mode 100644 index 000000000..823627c30 --- /dev/null +++ b/docs/api/sys/logs.md @@ -0,0 +1,36 @@ +This method returns logs from the server + +**URL** + +`/system/logs` + +**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 returns logging information from the server. + +**Sample Call** + +```json +GET /api/v1beta1/system/logs +{ + +} + +HTTP/1.1 200 OK +{ + "status":200, + "message":"Successful request", + "data":"[DEBUG] 2020-04-13 12:29:49.785..." +} diff --git a/mkdocs.yml b/mkdocs.yml index 96b8a8018..7990a4ed1 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -78,6 +78,7 @@ nav: - System: - Status: api/sys/status.md - Info: api/sys/info.md + - Logs: api/sys/logs.md - Guides: - Basic Setup: guides/basic-setup.md - Routr as Asterisk frontend: guides/routr-as-asterisk-frontend.md