OpenFolia

Download a release’s iiRDS package

GET
/releases/{releaseId}/iirds-packages/{packageId}/file

The package as an iiRDS ZIP archive (application/iirds+zip): mimetype first, then META-INF/metadata.rdf, the topics (content/<module>.html), the media they show (media/<sha256>.<ext>, symbols/<id>.<ext>) and the PDF (pdf/<manual>_<variant>_<lang>_<revision>.pdf, once done), every entry stored. The same release output makes the same bytes. Content-Disposition: attachment with <manual>_<variant>_<lang>_<revision>.iirds, Content-Length its exact length, X-Ccms-Iirds-Warnings how many warnings GET …/iirds-packages/{packageId} lists. Not cached (private, no-store): it gains the PDF once that is done. A blob store failing once part of it went out cuts the connection, and so does a download not read for a while, read too slowly or going on too long (CCMS_PACKAGE_SEND_*), freeing its turn. 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, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. 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
packageId*string

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

Formatuuid

Response Body

The package.

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