[asterisk-bugs] [JIRA] (ASTERISK-22152) ARI: Update/create automatic library code generation tools in git to use PyStache/Mustache templates
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Sat Jul 20 17:40:04 CDT 2013
Matt Jordan created ASTERISK-22152:
--------------------------------------
Summary: ARI: Update/create automatic library code generation tools in git to use PyStache/Mustache templates
Key: ASTERISK-22152
URL: https://issues.asterisk.org/jira/browse/ASTERISK-22152
Project: Asterisk
Issue Type: Improvement
Security Level: None
Components: Resources/res_stasis_http
Affects Versions: 12
Reporter: Matt Jordan
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