From 537ecebd2dc27120144498598f32dec97db6808d Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 2 Aug 2013 14:36:32 +0000 Subject: 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 --- rest-api/api-docs/sounds.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rest-api/api-docs/sounds.json') diff --git a/rest-api/api-docs/sounds.json b/rest-api/api-docs/sounds.json index 103738c45..fe0b09fd4 100644 --- a/rest-api/api-docs/sounds.json +++ b/rest-api/api-docs/sounds.json @@ -19,12 +19,14 @@ "parameters": [ { "name": "lang", + "description": "Lookup sound for a specific language.", "paramType": "query", "dataType": "string", "required": false }, { "name": "format", + "description": "Lookup sound in a specific format.", "paramType": "query", "dataType": "string", "required": false, -- cgit v1.2.3