Make a release’s iiRDS package and describe it
Makes the package (or takes it from the last few made) and says what it holds: meta.size, meta.topics, meta.media and meta.warnings, what the configured mapping could not map (left out of the metadata, never silently) and what is not in it (a file not stored, the PDF not 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, 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.
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.
uuidpackageId*stringThe 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.
uuidapplication/vnd.api+json- response
data*The iiRDS package, made: its size, what it holds and its warnings.
curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/iirds-packages/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "data": { "type": "IirdsPackage", "id": "string", "attributes": { "manual": "string", "variant": "string", "lang": "string", "fileName": "string", "pdf": true }, "links": { "self": "string", "file": "string" }, "meta": { "size": -9007199254740991, "topics": -9007199254740991, "media": -9007199254740991, "warnings": [ { "code": "unmapped-module-type", "id": "string", "detail": "string" } ] } }}