GET/timestamp/v3/records/:recordId/versions
Returns a list of versions of a given record.
Request
Path Parameters
- recordId
Record ID (multibase base64url encoded)
Description: Valid Pilot multibase base64url encoded recordId
Example: uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE
Query Parameters
Cursor that points to the end of the page of data that has been returned.
Defines the maximum number of objects that may be returned.
Responses
- 200
- 400
- 500
Success
- application/json
- Schema
- Success
Schema
- Array [
- ]
URI to versions
items object[]
List of versions
ID of the version
Link to the resource
Total number of items in a collection
Number of items to be returned per page
links object
Links model used for pagination.
URI of the last page
URI of the previous page
URI of the next page
URI of the first page
{
"self": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions?page[after]=1&page[size]=2",
"items": [
{
"versionId": 0,
"href": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions/0"
}
],
"total": 1,
"pageSize": 2,
"links": {
"first": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions?page[after]=1&page[size]=2",
"prev": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions?page[after]=1&page[size]=2",
"next": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions?page[after]=1&page[size]=2",
"last": "https://api-pilot.ebsi.eu/timestamp/v3/records/uayjbVvTT2SAAKvbiNg76PeSt1BLpHX4ah-xoGM4QqCE/versions?page[after]=1&page[size]=2"
}
}
Bad Request Error
- application/problem+json
- Schema
- Bad Paging Request
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Bad Paging Request",
"status": 400,
"detail": "PageSize should not be greater than 50"
}
Internal Server Error
- application/problem+json
- Schema
- Internal Server Error
Schema
Default value: about:blank
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type.
A short summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code generated by the origin server for this occurrence of the problem.
A human readable explanation specific to this occurrence of the problem.
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"title": "Internal error",
"status": 500,
"detail": "Internal error"
}