Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.91 KB

version.md

File metadata and controls

72 lines (49 loc) · 1.91 KB

Versioning endpoints

Back to the list of all defined endpoints

This endpoint represents a single version, matching a single item.

Whether a version is accessible depends on versioning.item.history.view.admin configuration.
If this is set to true, the version can only be retrieved if the user is an admin of the related item

Create version

TODO

Get single version

GET /api/versioning/versions/<:versionId>

Provide version information for the version id.

{
  "id": "102",
  "version": "2",
  "type": "version",
  "created": "2015-11-03T09:44:46.617",
  "summary": "Fixing some typos in the abstract",
  "submitterName": "LastName, FirstName",
  "_links": {
    "versionhistory": {
      "href": "https://dspace7.4science.it/dspace-spring-rest/api/versioning/versionhistories/10"
    },
    "self": {
      "href": "https://dspace7.4science.it/dspace-spring-rest/api/versioning/versions/101"
    },
    "item": {
      "href": "https://dspace7.4science.it/dspace-spring-rest/api/versioning/versions/101/item"
    }
  }
}

The submitterName attribute is only exposed if you are logged in as an administrator or if the versioning.item.history.include.submitter configuration property is set to true.

Status codes:

  • 200 OK - if the version exists and is accessible by the current user
  • 401 Unauthorized - if you are not authenticated and versioning is not public
  • 403 Forbidden - if you are not logged in with sufficient permissions and versioning is not public
  • 404 Not found - if the version doesn't exist

Get single version for item

GET /api/core/items/{:item-uuid}/version

See the item endpoint

Remove version

TODO

Update version

TODO

Linked entities

Version History

Retrieves the relation versions, for details see Version history

Item

The Item matching this specific version