summaryrefslogtreecommitdiff
path: root/res/res_ari_applications.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2016-08-18 17:02:24 -0500
committerKevin Harwell <kharwell@digium.com>2016-08-18 17:09:29 -0500
commit03c7e5e1eada8cf3ffe770470f39ff41ad42c977 (patch)
treeb86b910ebe3876f76de099deff0f1967f2933767 /res/res_ari_applications.c
parent81e3b8f141ee9a269adbab42d2bd390b9bfbb901 (diff)
rest-api: Swagger scripts were not replacing format variable in file brief
Given resource paths did not have 'json' substituted in for the '{format}'. For some auto generated documentation/comment strings it resulted in something like the following: "... REST handler for /api-docs/sounds.{format}" This patch makes sure the resource api's path is properly substituted. ASTERISK-25472 #close Change-Id: Ie3e950a35db4043e284019d6c9061f3b03922e23
Diffstat (limited to 'res/res_ari_applications.c')
-rw-r--r--res/res_ari_applications.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_ari_applications.c b/res/res_ari_applications.c
index f25fd070f..7ce9722fd 100644
--- a/res/res_ari_applications.c
+++ b/res/res_ari_applications.c
@@ -496,7 +496,7 @@ fin: __attribute__((unused))
return;
}
-/*! \brief REST handler for /api-docs/applications.{format} */
+/*! \brief REST handler for /api-docs/applications.json */
static struct stasis_rest_handlers applications_applicationName_subscription = {
.path_segment = "subscription",
.callbacks = {
@@ -506,7 +506,7 @@ static struct stasis_rest_handlers applications_applicationName_subscription = {
.num_children = 0,
.children = { }
};
-/*! \brief REST handler for /api-docs/applications.{format} */
+/*! \brief REST handler for /api-docs/applications.json */
static struct stasis_rest_handlers applications_applicationName = {
.path_segment = "applicationName",
.is_wildcard = 1,
@@ -516,7 +516,7 @@ static struct stasis_rest_handlers applications_applicationName = {
.num_children = 1,
.children = { &applications_applicationName_subscription, }
};
-/*! \brief REST handler for /api-docs/applications.{format} */
+/*! \brief REST handler for /api-docs/applications.json */
static struct stasis_rest_handlers applications = {
.path_segment = "applications",
.callbacks = {