Returns a paginated list of releases for the named package. Results that are subject to a hard-enforcement label from a trusted labeller the request accepts are filtered out; other label state is hydrated on each result. Results are ordered by descending semver version.
Parameters
Output
application/jsoncursor
string
Optional
Cursor to fetch the next page. Absent when there are no more results.
releases
array
Required
No description available.
Errors
NotFound
No package indexed under the given (did, package). ListingUnavailable
The package is indexed but no release revision is available under the aggregator's listing policy. No publisher-controlled content is returned. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Returns a paginated list of releases for the named package. Results that are subject to a hard-enforcement label from a trusted labeller the request accepts are filtered out; other label state is hydrated on each result. Results are ordered by descending semver version.",
"errors": [
{
"description": "No package indexed under the given (did, package).",
"name": "NotFound"
},
{
"description": "The package is indexed but no release revision is available under the aggregator's listing policy. No publisher-controlled content is returned.",
"name": "ListingUnavailable"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cursor": {
"description": "Cursor to fetch the next page. Absent when there are no more results.",
"maxLength": 1024,
"type": "string"
},
"releases": {
"items": {
"ref": "com.emdashcms.experimental.aggregator.defs#releaseView",
"type": "ref"
},
"maxLength": 100,
"type": "array"
}
},
"required": [
"releases"
],
"type": "object"
}
},
"parameters": {
"properties": {
"cursor": {
"description": "Pagination cursor from a previous response.",
"maxLength": 1024,
"type": "string"
},
"did": {
"description": "Publisher DID.",
"format": "did",
"type": "string"
},
"limit": {
"default": 25,
"description": "Max results to return.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"package": {
"description": "Parent package slug.",
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"required": [
"did",
"package"
],
"type": "params"
},
"type": "query"
}