mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
ARI: Added new functionality to get all module information.
An http request can be sent to retrieve a list of all existing modules, including the resource name, description, use count, status, and support level. The command "curl -v -u user:pass -X GET 'http://localhost:8088/ari/ asterisk/modules" (or something similar, depending 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 * Information on modules can now be retrieved Change-Id: I63cbbf0ec0c3544cc45ed2a588dceabe91c5e0b0
This commit is contained in:
committed by
Benjamin Keith Ford
parent
4a25d55416
commit
1b7760a8aa
@@ -206,6 +206,24 @@ int ast_ari_validate_config_info(struct ast_json *json);
|
||||
*/
|
||||
ari_validator ast_ari_validate_config_info_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for Module.
|
||||
*
|
||||
* Details of an Asterisk module
|
||||
*
|
||||
* \param json JSON object to validate.
|
||||
* \returns True (non-zero) if valid.
|
||||
* \returns False (zero) if invalid.
|
||||
*/
|
||||
int ast_ari_validate_module(struct ast_json *json);
|
||||
|
||||
/*!
|
||||
* \brief Function pointer to ast_ari_validate_module().
|
||||
*
|
||||
* See \ref ast_ari_model_validators.h for more details.
|
||||
*/
|
||||
ari_validator ast_ari_validate_module_fn(void);
|
||||
|
||||
/*!
|
||||
* \brief Validator for SetId.
|
||||
*
|
||||
@@ -1244,6 +1262,12 @@ ari_validator ast_ari_validate_application_fn(void);
|
||||
* - max_open_files: int
|
||||
* - name: string (required)
|
||||
* - setid: SetId (required)
|
||||
* Module
|
||||
* - description: string (required)
|
||||
* - name: string (required)
|
||||
* - status: string (required)
|
||||
* - support_level: string (required)
|
||||
* - use_count: int (required)
|
||||
* SetId
|
||||
* - group: string (required)
|
||||
* - user: string (required)
|
||||
|
Reference in New Issue
Block a user