GET/trusted-policies-registry/v2/policies
Returns a list of policies registered in the blockchain.
Request
Responses
- 200
- 400
- 500
Success
- application/json
- Schema
- Example (from schema)
- Success
Schema
- Array [
- ]
URI to policies
items object[]
List of policies
Name of the policy
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.
Hyperlink to the first page.
Hyperlink to the previous page.
Hyperlink to the next page.
Hyperlink to the last page.
{
"self": "string",
"items": [
{
"policyName": "string",
"href": "string"
}
],
"total": 0,
"pageSize": 0,
"links": {
"first": "string",
"prev": "string",
"next": "string",
"last": "string"
}
}
{
"self": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies?page[after]=3&page[size]=2",
"items": [
{
"policyName": "TIR:insertIssuer",
"href": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies/TIR:insertIssuer"
},
{
"policyName": "TIR:updateIssuer",
"href": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies/TIR:updateIssuer"
}
],
"total": 124,
"pageSize": 2,
"links": {
"first": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies?page[after]=1&page[size]=2",
"prev": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies?page[after]=2&page[size]=2",
"next": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies?page[after]=4&page[size]=2",
"last": "https://api-pilot.ebsi.eu/trusted-policies-registry/v2/policies?page[after]=62&page[size]=2"
}
}
Bad Request
- application/problem+json
- Schema
- Example (from schema)
- Bad 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.
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "Connection timeout",
"instance": "string"
}
{
"title": "Bad Request",
"status": 400,
"detail": "Bad request."
}
Internal Error
- application/problem+json
- Schema
- Example (from 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.
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "Connection timeout",
"instance": "string"
}
{
"title": "Internal Server Error",
"status": 500,
"detail": "The server encountered an internal error and was unable to process your request."
}