OpenFolia

Read a term

GET
/terms/{termId}

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.

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

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

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 the term’s ID, its file name (terms/<id>.yaml).

Example Request
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"        }      ]    }  }}