OpenFolia

Download all of a release’s files as one ZIP

GET
/releases/{releaseId}/outputs/archive

Every output of the release you may read (as GET …/outputs lists them) that is done, in one ZIP, its files stored as they were rendered (no compression: PDFs are compressed already), named <manual>/<lang>/<variant>.pdf (ASCII letters, digits, . and - per part, anything else -; a name taken already, ignoring case, gets -2, -3, … before the extension). Content-Disposition: attachment with <product>_<revision>.zip, Content-Length the archive's exact length. Streamed from the blob store one file at a time. Outputs still queued or rendering, or failed, are left out: X-Ccms-Archive-Files says how many files it holds, X-Ccms-Archive-Left-Out how many of those you may read are not in it. Not cached (private, no-store): it holds more files once more are done. A blob store failing once part of it went out cuts the connection. 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

Response Body

The archive.

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