Read a term
GET
One term at ?ref=, with the problems found checking it against the configuration and the module files linking it (meta.linkedIn, #245). A file that is no term is 422 invalid-content.
bearerheader
AuthorizationBearer <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.
termId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
length <= 100ref?stringBranch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.
application/vnd.api+json- response
data*id is the term’s ID, its file name (terms/<id>.yaml).
curl -X GET 'http://localhost:3000/terms/charger'Example Response
{ "data": { "type": "Term", "id": "string", "attributes": { "schemaVersion": 1, "status": "proposed", "domain": "string", "replacedBy": "string", "languages": { "property1": { "preferred": "string", "allowed": [], "forbidden": [], "definition": [ { "type": "text", "text": "string", "marks": [ { "type": "strong" } ] } ], "usage": "string" }, "property2": { "preferred": "string", "allowed": [], "forbidden": [], "definition": [ { "type": "text", "text": "string", "marks": [ { "type": "strong" } ] } ], "usage": "string" } } }, "meta": { "issues": [ { "severity": "error", "code": "string", "message": "string", "at": "string" } ], "usage": { "modules": -9007199254740991 }, "linkedIn": [ { "moduleId": "string", "lang": "string", "title": "string" } ] } }}