Asterisk - The Open Source Telephony Project
18.5.0
|
/api-docs/mailboxes.{format} implementation- Mailboxes resources More...
Go to the source code of this file.
Functions | |
void | ast_ari_mailboxes_delete (struct ast_variable *headers, struct ast_ari_mailboxes_delete_args *args, struct ast_ari_response *response) |
Destroy a mailbox. More... | |
void | ast_ari_mailboxes_get (struct ast_variable *headers, struct ast_ari_mailboxes_get_args *args, struct ast_ari_response *response) |
Retrieve the current state of a mailbox. More... | |
void | ast_ari_mailboxes_list (struct ast_variable *headers, struct ast_ari_mailboxes_list_args *args, struct ast_ari_response *response) |
List all mailboxes. More... | |
void | ast_ari_mailboxes_update (struct ast_variable *headers, struct ast_ari_mailboxes_update_args *args, struct ast_ari_response *response) |
Change the state of a mailbox. (Note - implicitly creates the mailbox). More... | |
/api-docs/mailboxes.{format} implementation- Mailboxes resources
Definition in file resource_mailboxes.c.
void ast_ari_mailboxes_delete | ( | struct ast_variable * | headers, |
struct ast_ari_mailboxes_delete_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Destroy a mailbox.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 79 of file resource_mailboxes.c.
References ast_ari_response_error(), ast_ari_response_no_content(), ast_ari_mailboxes_delete_args::mailbox_name, stasis_app_mailbox_delete(), STASIS_MAILBOX_ERROR, STASIS_MAILBOX_MISSING, and STASIS_MAILBOX_OK.
Referenced by ast_ari_mailboxes_delete_cb().
void ast_ari_mailboxes_get | ( | struct ast_variable * | headers, |
struct ast_ari_mailboxes_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Retrieve the current state of a mailbox.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 49 of file resource_mailboxes.c.
References ast_ari_response_error(), ast_ari_response_ok(), ast_ari_mailboxes_get_args::mailbox_name, stasis_app_mailbox_to_json(), STASIS_MAILBOX_ERROR, STASIS_MAILBOX_MISSING, and STASIS_MAILBOX_OK.
Referenced by ast_ari_mailboxes_get_cb().
void ast_ari_mailboxes_list | ( | struct ast_variable * | headers, |
struct ast_ari_mailboxes_list_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List all mailboxes.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 35 of file resource_mailboxes.c.
References ast_ari_response_error(), ast_ari_response_ok(), and stasis_app_mailboxes_to_json().
Referenced by ast_ari_mailboxes_list_cb().
void ast_ari_mailboxes_update | ( | struct ast_variable * | headers, |
struct ast_ari_mailboxes_update_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Change the state of a mailbox. (Note - implicitly creates the mailbox).
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 68 of file resource_mailboxes.c.
References ast_ari_response_error(), ast_ari_response_no_content(), ast_ari_mailboxes_update_args::mailbox_name, ast_ari_mailboxes_update_args::new_messages, ast_ari_mailboxes_update_args::old_messages, and stasis_app_mailbox_update().
Referenced by ast_ari_mailboxes_update_cb().