asterisk/rest-api-templates
David M. Lee 537ecebd2d 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
2013-08-02 14:36:32 +00:00
..
README.txt This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
api.wiki.mustache Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
ari.make.mustache Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
ari_model_validators.c.mustache Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
ari_model_validators.h.mustache Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
ari_resource.c.mustache Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
ari_resource.h.mustache ARI - implement allowMultiple for parameters 2013-08-02 14:36:32 +00:00
asterisk_processor.py ARI - channel recording support 2013-07-03 17:58:45 +00:00
do-not-edit.mustache This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
make_ari_stubs.py Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
models.wiki.mustache Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00
odict.py This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
param_cleanup.mustache ARI - implement allowMultiple for parameters 2013-08-02 14:36:32 +00:00
param_parsing.mustache ARI - implement allowMultiple for parameters 2013-08-02 14:36:32 +00:00
res_ari_resource.c.mustache ARI - implement allowMultiple for parameters 2013-08-02 14:36:32 +00:00
rest_handler.mustache Rename everything Stasis-HTTP to ARI 2013-07-27 23:11:02 +00:00
swagger_model.py ARI - channel recording support 2013-07-03 17:58:45 +00:00
transform.py Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +00:00

README.txt

This directory contains templates and template processing code for generating
HTTP bindings for the RESTful API's.

The RESTful API's are declared using [Swagger][swagger]. While Swagger provides
a [code generating toolkit][swagger-codegen], it requires Java to run, which
would be an unusual dependency to require for Asterisk developers.

This code generator is similar, but written in Python. Templates are processed
by using [pystache][pystache], which is a fairly simply Python implementation of
[mustache][mustache].

 [swagger]: https://github.com/wordnik/swagger-core/wiki
 [swagger-codegen]: https://github.com/wordnik/swagger-codegen
 [pystache]: https://github.com/defunkt/pystache
 [mustache]: http://mustache.github.io/