]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rest-api: Swagger scripts were not replacing format variable in file brief 47/3647/1
authorKevin Harwell <kharwell@digium.com>
Thu, 18 Aug 2016 22:02:24 +0000 (17:02 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 18 Aug 2016 22:09:29 +0000 (17:09 -0500)
commit03c7e5e1eada8cf3ffe770470f39ff41ad42c977
treeb86b910ebe3876f76de099deff0f1967f2933767
parent81e3b8f141ee9a269adbab42d2bd390b9bfbb901
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
12 files changed:
res/res_ari_applications.c
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_device_states.c
res/res_ari_endpoints.c
res/res_ari_events.c
res/res_ari_mailboxes.c
res/res_ari_playbacks.c
res/res_ari_recordings.c
res/res_ari_sounds.c
rest-api-templates/swagger_model.py