GET/track-and-trace/v1/documents/:documentId/accesses
Returns a list of accesses related to the document.
Request
Path Parameters
The 32-bytes ID of the document, encoded in hexadecimal.
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
- 404
- 500
Success
- application/json
- Schema
- Example
Schema
- Array [
- ]
Absolute path to the collection (consult)
items object[]
List of accesses
A
did:ebsi
did:key
The document ID.
The
did:ebsi
did:key
Permission granted: "write", "delegate" or "creator".
Total number of items across all pages.
Maximum number of items per page. For the last page, its value should be independent of the number of actually returned items.
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/track-and-trace/v1/documents/0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8/accesses?page[after]=1&page[size]=10",
"items": [
{
"subject": "did:ebsi:zxaYaUtb8pvoAtYNWbKcveg",
"documentId": "0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8",
"grantedBy": "did:ebsi:zxaYaUtb8pvoAtYNWbKcveg",
"permission": "creator"
}
],
"total": 1,
"pageSize": 10,
"links": {
"first": "https://api-pilot.ebsi.eu/track-and-trace/v1/documents/0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8/accesses?page[after]=1&page[size]=10",
"prev": "https://api-pilot.ebsi.eu/track-and-trace/v1/documents/0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8/accesses?page[after]=1&page[size]=10",
"next": "https://api-pilot.ebsi.eu/track-and-trace/v1/documents/0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8/accesses?page[after]=1&page[size]=10",
"last": "https://api-pilot.ebsi.eu/track-and-trace/v1/documents/0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8/accesses?page[after]=1&page[size]=10"
}
}
Bad Request Error
- application/problem+json
- Schema
- Invalid {documentId} Parameter
- 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 Request",
"status": 400,
"detail": "[\"documentId must be 32 bytes encoded in hexadecimal and start with 0x\"]"
}
{
"title": "Bad Paging Request",
"status": 400,
"detail": "[\"page[size] must not be greater than 50\"]"
}
Not found
- application/problem+json
- Schema
- Document Not Found
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": "Not found",
"status": 404,
"detail": "Not found"
}
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"
}