List a release’s outputs
The release’s files (#249): one PDF per manual, variant and configured language, rendered in the background once the release is cut (state), and one offline package (#59, kind offline-package) per configured language and audience level up to the highest any manual has, built once the PDFs are done: a ZIP of the manuals that level reads, as HTML pages and PDFs, that opens from the file system without a network (attributes.audience; manual and variant null). A reader sees a package only when one role of theirs reads its whole level in its language. A manual the release did not change (in that language) reuses the previous release’s file (meta.reusedFrom), so every release has a full set. A withdrawn release’s outputs stay readable, marked meta.withdrawn. Ordered by manual, variant, language. Needs content.read at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too (a module not translated falls back to it). An output is rendered as the manual’s audience reads it, the same file for all of its readers, so it may hold any module the manual names; a reader whose scope leaves some out reads the manual’s PDF route instead. Others get 404, exactly like a missing one.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
releaseId*stringThe release’s ID (a UUID). One that names no release, malformed or not, is 404.
uuidfilter[manual]?stringOnly this manual’s outputs.
^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100filter[lang]?stringOnly outputs in this language.
^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$filter[state]?stringOnly outputs in this state (queued, rendering, done, failed).
"queued""rendering""done""failed"filter[kind]?stringOnly outputs of this kind (pdf, offline-package).
"pdf""offline-package"page[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200application/vnd.api+json- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs'{ "data": [ { "type": "ReleaseOutput", "id": "string", "attributes": { "manual": "string", "variant": "string", "lang": "string", "kind": "pdf", "audience": "string", "state": "queued", "sha256": "string", "size": -9007199254740991, "error": { "code": "string", "detail": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }, "meta": { "reusedFrom": { "releaseId": "string", "outputId": "string" }, "attempts": -9007199254740991, "retries": -9007199254740991, "withdrawn": true, "design": { "id": "string", "name": "string", "source": "manual", "missing": true } }, "links": { "file": "string" } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 } }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}