rest-api: Swagger scripts were not replacing format variable in file brief
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:02:24 +0000 (17:02 -0500)
commit7ea133f2ab656296dee0091f9006ae016783b773
tree9b9d8c4411709f69e513e143b2bfe0ac42f2dab9
parent966527249ed144e4817ad168e334ea236b4c5d3a
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