OpenFolia

Download a release output

GET
/releases/{releaseId}/outputs/{outputId}/file

The output’s file from the blob store, as it was rendered (never rendered on request): Content-Disposition: attachment with a readable name (<manual>_<variant>_<lang>_<revision>.pdf; an offline package offline_<audience>_<lang>_<revision>.zip, application/zip), and cached for good (private, max-age=31536000, immutable: an output’s file never changes). 409 output-not-ready until the output is done. 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
outputId*string

The output’s ID (a UUID). One that names no output of the release you may read, malformed or not, is 404.

Formatuuid

Response Body

The file: a PDF, or an offline package’s ZIP.

response?unknown
Example Request
curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/outputs/497f6eca-6276-4993-bfeb-53cbbbba6f08/file'
Example Response
null