mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI: Improve wiki documentation
This patch improves the documentation of ARI on the wiki. Specifically, it addresses the following: * Allowed values and allowed ranges weren't documented. This was particularly frustrating, as Asterisk would reject query parameters with disallowed values - but we didn't tell anyone what the allowed values were. * The /play/id operation on /channels and /bridges failed to document all of the added media resource types. * Documentation for creating a channel into a Stasis application failed to note when it occurred, and that creating a channel into Stasis conflicts with creating a channel into the dialplan. * Some other minor tweaks in the mustache templates, including italicizing the parameter type, putting the default value on its own sub-bullet, and some other nicities. Review: https://reviewboard.asterisk.org/r/4351 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -80,8 +80,8 @@ int ast_ari_bridges_create_parse_body(
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_bridges_create(struct ast_variable *headers, struct ast_ari_bridges_create_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_bridges_create_or_update_with_id() */
|
||||
struct ast_ari_bridges_create_or_update_with_id_args {
|
||||
/*! Argument struct for ast_ari_bridges_create_with_id() */
|
||||
struct ast_ari_bridges_create_with_id_args {
|
||||
/*! Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media) to set. */
|
||||
const char *type;
|
||||
/*! Unique ID to give to the bridge being created. */
|
||||
@@ -96,9 +96,9 @@ struct ast_ari_bridges_create_or_update_with_id_args {
|
||||
* \retval zero on success
|
||||
* \retval non-zero on failure
|
||||
*/
|
||||
int ast_ari_bridges_create_or_update_with_id_parse_body(
|
||||
int ast_ari_bridges_create_with_id_parse_body(
|
||||
struct ast_json *body,
|
||||
struct ast_ari_bridges_create_or_update_with_id_args *args);
|
||||
struct ast_ari_bridges_create_with_id_args *args);
|
||||
|
||||
/*!
|
||||
* \brief Create a new bridge or updates an existing one.
|
||||
@@ -109,7 +109,7 @@ int ast_ari_bridges_create_or_update_with_id_parse_body(
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_bridges_create_or_update_with_id(struct ast_variable *headers, struct ast_ari_bridges_create_or_update_with_id_args *args, struct ast_ari_response *response);
|
||||
void ast_ari_bridges_create_with_id(struct ast_variable *headers, struct ast_ari_bridges_create_with_id_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_bridges_get() */
|
||||
struct ast_ari_bridges_get_args {
|
||||
/*! Bridge's id */
|
||||
@@ -306,7 +306,7 @@ int ast_ari_bridges_play_with_id_parse_body(
|
||||
/*!
|
||||
* \brief Start playback of media on a bridge.
|
||||
*
|
||||
* The media URI may be any of a number of URI's. Currently sound: and recording: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)
|
||||
* The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
|
Reference in New Issue
Block a user