Is there any way of quickly producing a CRUD REST API for some active objects tables?
For example, in grails, there is some plugin you can add that will give you create / get / delete rest apis for all your domain objects. Is there something similar available for atlassian AO?
Or must I hand-roll it all...?
Community moderators have prevented the ability to post new answers.
Lovingly hand-rolled.
Jamie, Did you ever found a solution or did you hand-rolled it ? Francis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Active Objects usage in plugins is limited to tables created by the same plugin. You could create plugin to store / retreive some data in JIRA's database, but it would still have some limitations
So plugin can't help you much.
Why don't you bypass JIRA and connect to your DB directly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not quite, the question was for easy exposure of stored AO data via REST or similar from within a plugin. the AO storage model works quite well, but falls over (IMO) as there isnt an braindead simple way to expose that information struture through REST. Reference to 'rolling your own' was writing the necessary serialization/deserialization so that REST services can front AO storage.
The key advantage of using AO over direct DB is that the plugin developer (and therefore customer) do not have to manage plugin-specific database backups and restore. Connecting to the database has always been possible, but has that significant drawback, and of course, puts the onus on the developer to support lots of different databases (with various db-specific issues included).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What Andy said.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.