问题
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?
Also, I would like to access the USERNAME of the form data owner via the REST API.
回答1:
The documentation was not quite up to date and I have now clarified the section you are quoting.
The bottom line:
- Versioning of form definition is implemented since Orbeon Forms 4.5. This is exposed at the API layer via the
Orbeon-Form-Definition-Version
header. But the documentation of this header is lacking. - There is no versioning of form data (so nothing exposed at the API level either).
As a separate feature, the relational persistence implementation never deletes database rows, which allows for auditing of changes (including form definitions and form data). There is no API exposed for this.
来源:https://stackoverflow.com/questions/26852111/in-orbeon-forms-is-form-version-information-available-in-the-rest-api