OpenFolia

List a release’s outputs

GET
/releases/{releaseId}/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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

releaseId*string

The release’s ID (a UUID). One that names no release, malformed or not, is 404.

Formatuuid

Query Parameters

filter[manual]?string

Only this manual’s outputs.

Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 100
filter[lang]?string

Only outputs in this language.

Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
filter[state]?string

Only outputs in this state (queued, rendering, done, failed).

Value in"queued""rendering""done""failed"
filter[kind]?string

Only outputs of this kind (pdf, offline-package).

Value in"pdf""offline-package"
page[number]?integer

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs'
Example Response
{  "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"  }}