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-19 16:58:55 -0500
commitc1b6a796865d11006634f39c765eb12a4bfb556d (patch)
treee57befba090cb6a81d9e506a68d0829536aa8ca2 /include
parent2b057d62157cd06e52704a7d91bcbb5990d66e8f (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 (cherry picked from commit 6f448f32fe9b7379e2630fab7b06205f901f2ded)
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 79b9516eb..4019e94e3 100644
--- a/include/asterisk/ari.h
+++ b/include/asterisk/ari.h
@@ -146,10 +146,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 */