Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Simple CRUD REST API for Active Objects tables...?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2013

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...?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 2, 2014

Lovingly hand-rolled.

0 votes
francis
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
December 2, 2014

Jamie, Did you ever found a solution or did you hand-rolled it ? Francis

0 votes
Remigiusz Jackowski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2013

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

  1. Table's scheme must be knows while compliling plugin - you can't have data structures made in run-time.
  2. You could store structure as serialized text, but it can't be BLOB, so it will use a lot of space.

So plugin can't help you much.

Why don't you bypass JIRA and connect to your DB directly?

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2013

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).

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2013

What Andy said.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events