Is form version information unavailable in the REST API?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is form version information unavailable in the REST API?

ajw625
The documentation says:

In addition, the Oracle, MySQL, and DB2 implementations support versioning to some level, in that it keeps older versions. However this is not visible at the level of the REST API. If all you need is keep older versions in the database, what the Oracle, MySQL, and DB2 implementation does might be sufficient. The best will be for Form Runner and Form Builder to handle versioning natively.

http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api#TOC-Support-for-versioning

Does this mean we can't see form versions at all in the REST API?
Reply | Threaded
Open this post in threaded view
|

Re: Is form version information unavailable in the REST API?

Alessandro  Vernet
Administrator
Hi Andrew,

This part of the documentation was referring to versioning of form data, not versioning of form definitions. Orbeon Forms supports versioning for form definitions, but not yet for form data, even if the implementation of the persistence API for relational databases keeps track of changes to the data. Does this make sense?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Is form version information unavailable in the REST API?

ajw625
Thanks, Alex. I also posted this question to stackoverflow and got an answer from Erik. I meant to post that here.

http://stackoverflow.com/questions/26852111/in-orbeon-forms-is-form-version-information-available-in-the-rest-api

It turns that the Orbeon-Form-Definition-Version header, that the REST API returns, is what I was looking for. As Erik says, the documentation for this header is lacking. It only mentions Form Builder passing the header when publishing.

On Thursday, 13 November 2014 15:46:45 UTC-8, Alessandro Vernet wrote:
Hi Andrew,

This part of the documentation was referring to versioning of form data, not
versioning of form definitions. Orbeon Forms supports versioning for form
definitions, but not yet for form data, even if the implementation of the
persistence API for relational databases keeps track of changes to the data.
Does this make sense?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: <a href="http://discuss.orbeon.com/Is-form-version-information-unavailable-in-the-REST-API-tp4659186p4659224.html" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FIs-form-version-information-unavailable-in-the-REST-API-tp4659186p4659224.html\46sa\75D\46sntz\0751\46usg\75AFQjCNEA3na4gEgHWKZFcVrw4xHYai-TEQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fdiscuss.orbeon.com%2FIs-form-version-information-unavailable-in-the-REST-API-tp4659186p4659224.html\46sa\75D\46sntz\0751\46usg\75AFQjCNEA3na4gEgHWKZFcVrw4xHYai-TEQ';return true;">http://discuss.orbeon.com/Is-form-version-information-unavailable-in-the-REST-API-tp4659186p4659224.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Is form version information unavailable in the REST API?

Alessandro  Vernet
Administrator
Hi Andrew,

Good, I'm glad you found about the Orbeon-Form-Definition-Version header. There is some documentation about it on the page linked below, but it is far from perfect. However, this header is passed pretty consistently in requests to asks for a specific version, and in responses to say which version is being served or used.

http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet