OpenFolia

Project configuration

GET
/config

Languages, audiences, module types, variant attributes and safety symbols (openfolia.yaml). With an iiRDS mapping (iirds), meta.iirdsIssues checks it against the rest: what it leaves unmapped, keys naming nothing; with a DITA mapping (dita), meta.ditaIssues lists its values naming nothing configured; meta.directionIssues lists each languages.direction entry for a language not configured.

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.

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*

A singleton: id is always project.

Example Request
curl -X GET 'http://localhost:3000/config'
Example Response
{  "data": {    "type": "ProjectConfig",    "id": "string",    "attributes": {      "languages": {        "source": "string",        "targets": [          "string"        ],        "direction": {          "property1": "ltr",          "property2": "ltr"        }      },      "moduleTypes": [        {          "id": "string",          "label": "string",          "restricted": false,          "snippet": false,          "safety": true        }      ],      "audiences": [        {          "id": "string",          "label": "string"        }      ],      "facets": [],      "variantAttributes": [],      "textAttributes": [],      "safetySymbols": [],      "calloutStyles": [        {          "id": "string",          "label": "string"        }      ],      "translations": {        "property1": {          "sourceCommit": "string",          "blocks": {            "property1": "string",            "property2": "string"          }        },        "property2": {          "sourceCommit": "string",          "blocks": {            "property1": "string",            "property2": "string"          }        }      },      "outputLabels": {},      "maxHeadingLevel": 3,      "codeLanguages": [],      "release": {        "productFacet": "string",        "checkManufacturer": true      },      "manufacturer": {        "name": "string",        "address": [],        "contact": "string",        "website": "http://example.com"      },      "styleGuide": "string",      "terminology": {        "forbiddenIsBlocking": false      },      "styleRules": {        "property1": {          "maxSentenceWords": 5,          "rules": []        },        "property2": {          "maxSentenceWords": 5,          "rules": []        }      },      "pdf": {        "standard": "ua-1"      },      "delivery": {        "access": "signed-in",        "missingLanguage": "picker",        "pdfQrCode": "none",        "manuals": {}      },      "iirds": {        "baseIri": "string",        "documentTypes": [          "AdministratorGuide"        ],        "manualDocumentTypes": {},        "moduleTypes": {},        "audiences": {},        "facets": {},        "variantAttributes": {},        "lifecyclePhases": {          "facet": "string",          "values": {            "property1": "Acquisition",            "property2": "Acquisition"          }        }      },      "dita": {        "moduleTypes": {},        "outputclasses": {},        "defaultModuleType": "string",        "profiling": {},        "textKeys": {},        "hazardSymbols": {},        "ditavalDefault": "none"      }    },    "meta": {      "iirdsIssues": [        {          "code": "unmapped-module-type",          "path": "string",          "message": "string"        }      ],      "ditaIssues": [        {          "code": "unknown-module-type",          "path": "string",          "message": "string"        }      ],      "directionIssues": [        {          "code": "unknown-direction-language",          "path": "string",          "message": "string"        }      ]    }  }}