ARI: Added new functionality to load a single module.
[asterisk/asterisk.git] / rest-api / api-docs / asterisk.json
index 76c834e..dcbfb2c 100644 (file)
                                                        "reason": "Module information could not be retrieved."
                                                }
                                        ]
+                               },
+                               {
+                                       "httpMethod": "POST",
+                                       "summary": "Load an Asterisk module.",
+                                       "nickname": "loadModule",
+                                       "responseClass": "void",
+                                       "parameters": [
+                                               {
+                                                       "name": "moduleName",
+                                                       "description": "Module's name",
+                                                       "paramType": "path",
+                                                       "required": true,
+                                                       "allowMultiple": false,
+                                                       "dataType": "string"
+                                               }
+                                       ],
+                                       "errorResponses": [
+                                               {
+                                                       "code": 409,
+                                                       "reason": "Module could not be loaded."
+                                               }
+                                       ]
                                }
                        ]
                },