Closed abollini closed 3 years ago
@tdonohue @benbosman please take a look to this alternative approach https://github.com/DSpace/RestContract/pull/171
after looking a second time to all your suggestion we have decided to try to design a different solution based on the design that was already set in 7.0 (main navigation via embedding item/version/versionhistory).
Closing this in favor of #171
This contract includes the changes needed to support the item versioning in DSpace 7 as by https://github.com/DSpace/DSpace/issues/2844
The original version and versionhistory contract were just an old (2 years ago) draft.
The change in the items endpoint is to avoid a bidirectional reference between item and version. The item now has a link to versionhistory as this make easier to embed the minimal information that are always needed on UI to show an info box if you are looking to an older version of the content or to trigger the visualization of an history. A search method in the version endpoint is proposed to allow to retrieve the version details related to a specific item if needed.