OpenFolia

Make a release’s DITA package and describe it

GET
/releases/{releaseId}/dita-packages/{packageId}

Makes the package (or takes it from the last few made) and says what it holds: meta.size, meta.languages, meta.topics, meta.media and meta.warnings, what DITA could not say as the content does and was written in another form or left out (never silently). 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

Query Parameters

languages?string

output (the default): the output’s language only; all: every configured language you may read the whole manual in, each a folder.

Value in"output""all"
references?string

conref (the default): a module reference is a content reference (@conref, @conrefend) where DITA can say one, else its content; resolved: always its content.

Value in"conref""resolved"

Response Body

application/vnd.api+json
  1. response
data*

The DITA package, made: its size, what it holds and its warnings.

Example Request
curl -X GET 'http://localhost:3000/releases/497f6eca-6276-4993-bfeb-53cbbbba6f08/dita-packages/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "data": {    "type": "DitaPackage",    "id": "string",    "attributes": {      "manual": "string",      "variant": "string",      "lang": "string",      "fileName": "string"    },    "links": {      "self": "string",      "file": "string"    },    "meta": {      "size": -9007199254740991,      "languages": [        "string"      ],      "references": "conref",      "topics": -9007199254740991,      "media": -9007199254740991,      "warnings": [        {          "code": "module-not-exported",          "module": "string",          "block": "string",          "lang": "string",          "detail": "string",          "count": -9007199254740991        }      ],      "warningsDropped": -9007199254740991    }  }}