Including line breaks (<br>, <br/>, <br />) in certain parts of the rest-api json definition (e.g. summary, notes) displays them correctly in swagger. However, when the field gets converted to the wiki format those breaks get escaped and show up in the text as the actual string literal "<br>" etc... This patch makes it so when converting to the wiki format it replaces all line break values (<br>, etc...) with line feeds ('\n'). Change-Id: Ie1c9faa0d1c5d622804cc0a21ce769095b08aa3d |
||
---|---|---|
.. | ||
README.txt | ||
api.wiki.mustache | ||
ari.make.mustache | ||
ari_model_validators.c.mustache | ||
ari_model_validators.h.mustache | ||
ari_resource.c.mustache | ||
ari_resource.h.mustache | ||
asterisk_processor.py | ||
body_parsing.mustache | ||
do-not-edit.mustache | ||
make_ari_stubs.py | ||
models.wiki.mustache | ||
odict.py | ||
param_cleanup.mustache | ||
param_parsing.mustache | ||
res_ari_resource.c.mustache | ||
rest_handler.mustache | ||
swagger_model.py | ||
transform.py |
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/