summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorScott Emidy <jemidy@digium.com>2015-08-06 15:18:04 -0500
committerScott Emidy <jemidy@digium.com>2015-08-06 17:41:11 -0500
commit78364132ce94d9ded24ae6e6ab44b97d256b506d (patch)
treea4277262f837478a57ae5a6cc03347dddbb35f30 /rest-api
parentc07fa843ec49a114473fe3b5609d00f80ace1b3d (diff)
ARI: Deleting log channels
An http request can be sent to delete a log channel in Asterisk. The command "curl -v -u user:pass -X DELETE 'http://localhost:8088 /ari/asterisk/logging/mylog'" can be run in the terminal to access the newly implemented functionally for ARI. * Able to delete log channels using ARI ASTERISK-25252 Change-Id: Id6eeb54ebcc511595f0418d586ff55914bc3aae6
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/asterisk.json32
1 files changed, 30 insertions, 2 deletions
diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json
index 6e0dd6c0d..c251dfaf9 100644
--- a/rest-api/api-docs/asterisk.json
+++ b/rest-api/api-docs/asterisk.json
@@ -297,6 +297,34 @@
]
},
{
+ "path": "/asterisk/logging/{logChannelName}",
+ "description": "Asterisk log channel",
+ "operations": [
+ {
+ "httpMethod": "DELETE",
+ "summary": "Deletes a log channel.",
+ "nickname": "deleteLog",
+ "responseClass": "void",
+ "parameters": [
+ {
+ "name": "logChannelName",
+ "description": "Log channels name",
+ "paramType": "path",
+ "required": true,
+ "allowMultiple": false,
+ "dataType": "string"
+ }
+ ],
+ "errorResponses": [
+ {
+ "code": 404,
+ "reason": "Log channel does not exist."
+ }
+ ]
+ }
+ ]
+ },
+ {
"path": "/asterisk/logging/{logChannelName}/rotate",
"description": "Asterisk log channel",
"operations": [
@@ -565,7 +593,7 @@
"id": "LogChannel",
"description": "Details of an Asterisk log channel",
"properties": {
- "name": {
+ "channel": {
"type": "string",
"description": "The log channel path",
"required": true
@@ -581,7 +609,7 @@
"required": true
},
"configuration": {
- "type": "string",
+ "type": "List[string]",
"description": "The various log levels",
"required": true
}