GET/track-and-trace/v1/accesses
Get accesses filtered by subject.
Request
Query Parameters
Subject DID
Responses
- 200
- 400
- 404
- 500
Success
- application/json
- Schema
- Example
Schema
- Array [
- ]
Absolute path to the collection (consult)
items object[]
List of accesses
Subject
Document ID
DID that granted the access
Possible values: [write
, delegate
, creator
]
Type of permission
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/accesses?page[after]=1&page[size]=10&subject=did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"items": [
{
"documentId": "0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8",
"subject": "did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"grantedBy": "did:ebsi:zmRQoAM1YrVBVA3cP6CwYfc",
"permission": "write"
},
{
"documentId": "0xbfc90433cfe7cf69119899a96837032bee6c84ba7f6ac9aa008ef2de5eeacfb8",
"subject": "did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"grantedBy": "did:ebsi:zmRQoAM1YrVBVA3cP6CwYfc",
"permission": "delegate"
}
],
"total": 2,
"pageSize": 10,
"links": {
"first": "https://api-pilot.ebsi.eu/track-and-trace/v1/accesses?page[after]=1&page[size]=10&subject=did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"prev": "https://api-pilot.ebsi.eu/track-and-trace/v1/accesses?page[after]=1&page[size]=10&subject=did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"next": "https://api-pilot.ebsi.eu/track-and-trace/v1/accesses?page[after]=2&page[size]=10&subject=did:ebsi:ztqWJAmfyuUEf9Jvh97p167",
"last": "https://api-pilot.ebsi.eu/track-and-trace/v1/accesses?page[after]=10&page[size]=10&subject=did:ebsi:ztqWJAmfyuUEf9Jvh97p167"
}
}
Bad Request
- application/problem+json
- Schema
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.
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/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"
}