OpenFolia

Resolve a manual

GET
/manuals/{id}/variants/{variant}/{lang}

The manual assembled for one listed variant and a configured language: conditions applied, module references inlined, text attributes filled in (one the variant has no value for stays an attribute node, reported as missing-text-attribute), modules the reader may not see left out (an outside-scope issue each, for content.read.draft holders). Missing translations fall back to the source language and are reported as issues.

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

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

Variant slug as listed by GET /manuals/{id}, e.g. model=large.

Length1 <= length <= 500
lang*string
Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$

Query Parameters

ref?string

Branch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.

Response Body

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

id is <manual>/<variant>/<lang>, as in the URL.

Example Request
curl -X GET 'http://localhost:3000/manuals/operating/variants/model=large/en'
Example Response
{  "data": {    "type": "ResolvedManual",    "id": "string",    "attributes": {      "title": "string",      "lang": "string",      "variant": {        "property1": "string",        "property2": "string"      },      "entries": [        {          "kind": "module",          "module": "string",          "title": "string",          "lang": "string",          "blocks": [            {              "type": "paragraph",              "id": "string",              "content": [                {                  "type": "text",                  "text": "string",                  "marks": [                    {                      "type": "strong"                    }                  ]                }              ]            }          ]        }      ],      "origins": {        "property1": {          "module": "string",          "block": "string"        },        "property2": {          "module": "string",          "block": "string"        }      },      "anchors": {        "property1": "string",        "property2": "string"      },      "callouts": {        "property1": {          "property1": 1,          "property2": 1        },        "property2": {          "property1": 1,          "property2": 1        }      },      "xrefTitles": {        "property1": "string",        "property2": "string"      }    },    "relationships": {      "manual": {        "data": {          "type": "Manual",          "id": "string"        }      }    },    "meta": {      "issues": [        {          "severity": "error",          "code": "string",          "message": "string",          "module": "string"        }      ]    }  }}