OpenFolia

List a release’s iiRDS packages

GET
/releases/{releaseId}/iirds-packages

One iiRDS package per release output (a manual in one of its variants and a configured language), its id the output’s: the manual’s modules as HTML topics, its PDF as a rendition once that is done, and the metadata (META-INF/metadata.rdf, iiRDS 1.3) the configured mapping makes. 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.

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

Query Parameters

filter[manual]?string

Only this manual’s packages.

Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 100
filter[lang]?string

Only packages in this language.

Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
page[number]?integer

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/iirds-packages'
Example Response
{  "data": [    {      "type": "IirdsPackage",      "id": "string",      "attributes": {        "manual": "string",        "variant": "string",        "lang": "string",        "fileName": "string",        "pdf": true      },      "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"  }}