From f19c4930c2bd11e8b75ad2c6b4e5ff9d5304edb8 Mon Sep 17 00:00:00 2001 From: Scott Emidy Date: Thu, 6 Aug 2015 15:18:04 -0500 Subject: 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 --- rest-api/api-docs/asterisk.json | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'rest-api') diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json index 5109419d7..53f690d47 100644 --- a/rest-api/api-docs/asterisk.json +++ b/rest-api/api-docs/asterisk.json @@ -296,6 +296,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", @@ -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 } -- cgit v1.2.3