ARI - implement allowMultiple for parameters
authorDavid M. Lee <dlee@digium.com>
Fri, 2 Aug 2013 14:36:32 +0000 (14:36 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 2 Aug 2013 14:36:32 +0000 (14:36 +0000)
commit537ecebd2dc27120144498598f32dec97db6808d
treea3815f8c3f9cc7e2443d8cebc31a7b1d109aa81d
parent10c91bc96eafbf5f897869ede83127c9c267981c
ARI - implement allowMultiple for parameters

Swagger allows parameters to be specified as 'allowMultiple', meaning
that the parameter may be specified as a comma separated list of
values.

I had written some of the API docs using that, but promptly forgot
about implementing it. This patch finally fills in that gap.

The codegen template was updated to represent 'allowMultiple' fields
as array/size fields in the _args structs. It also parses the comma
separated list using ast_app_separate_args(), so quoted strings in the
argument will be handled properly.

Review: https://reviewboard.asterisk.org/r/2698/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
22 files changed:
res/ari/resource_asterisk.h
res/ari/resource_bridges.c
res/ari/resource_bridges.h
res/ari/resource_events.c
res/ari/resource_events.h
res/ari/resource_sounds.h
res/res_ari_asterisk.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_ari_endpoints.c
res/res_ari_events.c
res/res_ari_playback.c
res/res_ari_recordings.c
res/res_ari_sounds.c
rest-api-templates/ari_resource.h.mustache
rest-api-templates/param_cleanup.mustache [new file with mode: 0644]
rest-api-templates/param_parsing.mustache
rest-api-templates/res_ari_resource.c.mustache
rest-api/api-docs/bridges.json
rest-api/api-docs/channels.json
rest-api/api-docs/events.json
rest-api/api-docs/sounds.json