ARI: Added new functionality to unload a single module.
[asterisk/asterisk.git] / rest-api / api-docs / asterisk.json
index dcbfb2c..28badce 100644 (file)
                                                        "reason": "Module could not be loaded."
                                                }
                                        ]
+                               },
+                               {
+                                       "httpMethod": "DELETE",
+                                       "summary": "Unload an Asterisk module.",
+                                       "nickname": "unloadModule",
+                                       "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 unloaded."
+                                               }
+                                       ]
                                }
                        ]
                },