-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10945 from IQSS/10888-add-api-for-comparing-datas…
…et-versions Add API endpoint for comparing Dataset Versions
- Loading branch information
Showing
11 changed files
with
484 additions
and
16 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
doc/release-notes/10888-add-api-for-comparing-dataset-versions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The following API have been added: | ||
|
||
/api/datasets/{persistentId}/versions/{versionId0}/compare/{versionId1} | ||
|
||
This API lists the changes between 2 dataset versions. The Json response shows the changes per field within the Metadata block and the Terms Of Access. Also listed are the files that have been added or removed. Files that have been modified will also display the new file data plus the fields that have been modified. | ||
When compare includes an unpublished/draft version the api token must be associated with a user having view unpublished privileges | ||
An error will be returned if VERSION0 was not created before VERSION1 | ||
|
||
Example of Metadata Block field change: | ||
```json | ||
{ | ||
"blockName": "Life Sciences Metadata", | ||
"changed": [ | ||
{ | ||
"fieldName": "Design Type", | ||
"oldValue": "", | ||
"newValue": "Parallel Group Design; Nested Case Control Design" | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.