[asterisk-bugs] [JIRA] (ASTERISK-22149) ARI: Update/create automatic library code generation tools in git to use PyStache/Mustache templates

David M. Lee (JIRA) noreply at issues.asterisk.org
Mon Jan 6 10:29:03 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David M. Lee closed ASTERISK-22149.
-----------------------------------

    Resolution: Fixed

We have a Python client library - https://github.com/asterisk/ari-py

Other language bindings can be built as needed/when someone's available to do it.
                
> ARI: Update/create automatic library code generation tools in git to use PyStache/Mustache templates
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22149
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22149
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_ari
>    Affects Versions: 12
>            Reporter: Matt Jordan
>            Assignee: David M. Lee
>              Labels: Asterisk12
>
> The automated code generation tools have become a tad OBE'd. They were an excellent proof of concept, but we need to formalize them more at this point.
> Based on the REST models and methods, we should have a set of tools that generate:
> * Objects. Objects should have properties reflecting the model properties, and methods on the properties that map to their corresponding REST API calls.
> ** Methods that act on all objects of a particular type should be static or class methods
> ** Objects that can be updated by events should support observers/event handlers that register for event notification on the object
> * Events should be objects. Events that update an object should be automatically routed to that object and the object should update itself based on the event. The event should then passed to callback handlers/observers
> * Factories for creating objects should probably also be added, as well as automatic tracking/caching of an application's channels, bridges, etc.
> Things that can't be automatically generated and updated should be added and maintained separately.
> The initial set of languages we should aim to support are Python, Perl, and JavaScript.
> Ruby would be a nice addition.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list