asterisk/rest-api-templates
David M. Lee dbc588b02f Fix load errors related to the new ari_model_validators.
The Asterisk strategy of loading modules with RTLD_LAZY to extract metadata
from the module works well enough, until you try to take the address of a
function.

If a module takes the address of a function, that function needs to be
resolved at load time. That kinda defeats RTLD_LAZY.

This patch adds some ari_validator_{id}_fn() wrapper functions for safely
getting the function pointer from a different module.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-07-03 19:46:50 +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_model_validators.c.mustache Fix load errors related to the new ari_model_validators. 2013-07-03 19:46:50 +00:00
ari_model_validators.h.mustache Fix load errors related to the new ari_model_validators. 2013-07-03 19:46:50 +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 Update events to use Swagger 1.3 subtyping, and related aftermath 2013-07-03 16:32:41 +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_parsing.mustache Shuffle RESTful URL's around. 2013-07-03 16:32:00 +00:00
res_stasis_http_resource.c.mustache Fix load errors related to the new ari_model_validators. 2013-07-03 19:46:50 +00:00
rest_handler.mustache Shuffle RESTful URL's around. 2013-07-03 16:32:00 +00:00
stasis_http.make.mustache This patch adds a RESTful HTTP interface to Asterisk. 2013-04-22 14:58:53 +00:00
stasis_http_resource.c.mustache Shuffle RESTful URL's around. 2013-07-03 16:32:00 +00:00
stasis_http_resource.h.mustache Shuffle RESTful URL's around. 2013-07-03 16:32:00 +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/