mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-12 16:01:36 +00:00
Merge "res_ari: Add http prefix to generated docs" into 13
This commit is contained in:
@@ -144,10 +144,11 @@ void ast_ari_invoke(struct ast_tcptls_session_instance *ser,
|
||||
* for unit testing.
|
||||
*
|
||||
* \param uri Requested URI, relative to the docs path.
|
||||
* \param prefix prefix that prefixes all http requests
|
||||
* \param headers HTTP headers.
|
||||
* \param[out] response RESTful HTTP response.
|
||||
*/
|
||||
void ast_ari_get_docs(const char *uri, struct ast_variable *headers, struct ast_ari_response *response);
|
||||
void ast_ari_get_docs(const char *uri, const char *prefix, struct ast_variable *headers, struct ast_ari_response *response);
|
||||
|
||||
/*! \brief Abstraction for reading/writing JSON to a WebSocket */
|
||||
struct ast_ari_websocket_session;
|
||||
|
||||
@@ -101,6 +101,7 @@ struct ast_http_uri {
|
||||
AST_LIST_ENTRY(ast_http_uri) entry;
|
||||
const char *description;
|
||||
const char *uri;
|
||||
const char *prefix;
|
||||
ast_http_callback callback;
|
||||
unsigned int has_subtree:1;
|
||||
/*! Structure is malloc'd */
|
||||
|
||||
Reference in New Issue
Block a user