From 1aafadf8148a7cf66f73beeb6fe711d98b678fc5 Mon Sep 17 00:00:00 2001 From: Benjamin Ford Date: Tue, 14 Jul 2015 13:12:32 -0500 Subject: ARI: Added new functionality to reload a single module. An http request can be sent to reload an Asterisk module. If the module can not be reloaded or is not already loaded, an error response will be returned. The command "curl -v -u user:pass -X PUT 'http://localhost:8088 /ari/asterisk/modules/{moduleName}'" (or something similar, based on configuration) can be run in the terminal to access this new functionality. For more information, see: https://wiki.asterisk.org/wiki.display/~bford/Asterisk+ARI+Resource * Added new ARI functionality * Asterisk modules can be reloaded through http requests ASTERISK-25173 Change-Id: I289188bcae182b2083bdbd9ebfffd50b62f58ae1 --- rest-api/api-docs/asterisk.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'rest-api') diff --git a/rest-api/api-docs/asterisk.json b/rest-api/api-docs/asterisk.json index 28badce80..c6968a5ba 100644 --- a/rest-api/api-docs/asterisk.json +++ b/rest-api/api-docs/asterisk.json @@ -127,6 +127,32 @@ "reason": "Module could not be unloaded." } ] + }, + { + "httpMethod": "PUT", + "summary": "Reload an Asterisk module.", + "nickname": "reloadModule", + "responseClass": "void", + "parameters": [ + { + "name": "moduleName", + "description": "Module's name", + "paramType": "path", + "required": true, + "allowMultiple": false, + "dataType": "string" + } + ], + "errorResponses": [ + { + "code": 404, + "reason": "Module not found in running modules." + }, + { + "code": 409, + "reason": "Module could not be reloaded." + } + ] } ] }, -- cgit v1.2.3