List a release’s DITA packages
One DITA 1.3 package per release output (a manual in one of its variants and a configured language), its id the output’s: the manual as a map (<lang>/<manual>.ditamap), a topic per module of the topic type its module type maps to (<lang>/<module>.dita), the media they show and a DITAVAL file for the variant (filters/), by the configuration’s DITA mapping (dita in openfolia.yaml) read backwards. Listing makes none: each is made when it is read. 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, 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.
uuidfilter[manual]?stringOnly this manual’s packages.
^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100filter[lang]?stringOnly packages in this language.
^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$page[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200application/vnd.api+json- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/dita-packages'{ "data": [ { "type": "DitaPackage", "id": "string", "attributes": { "manual": "string", "variant": "string", "lang": "string", "fileName": "string" }, "links": { "self": "string", "file": "string" } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 } }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}