summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTorrey Searle <torrey@voxbone.com>2016-08-17 15:10:54 +0200
committerJoshua Colp <jcolp@digium.com>2016-08-17 15:33:05 +0000
commit6f448f32fe9b7379e2630fab7b06205f901f2ded (patch)
tree31e7039d0b1d6236308c544667faa4c410418f19 /include
parent455bc789013a5f79ff37d68be4b3847173ecaca7 (diff)
res_ari: Add http prefix to generated docs
updated the uri handler to include the url prefix of the http server this enables res_ari to add it to the uris when generating docs Change-Id: I279335a2625261a8492206c37219698f42591c2e
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/ari.h3
-rw-r--r--include/asterisk/http.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/ari.h b/include/asterisk/ari.h
index c3df46a2b..1c54a694b 100644
--- a/include/asterisk/ari.h
+++ b/include/asterisk/ari.h
@@ -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;
diff --git a/include/asterisk/http.h b/include/asterisk/http.h
index bb8973dce..d5f54cc65 100644
--- a/include/asterisk/http.h
+++ b/include/asterisk/http.h
@@ -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 */