OpenFolia

Export the terms

GET
/terms/export

Every term at ?ref=, by ID, as a download (Content-Disposition: attachment): TBX-Basic (ISO 30042:2019, DCA style; one conceptEntry per term, a termSec per variant with its administrative status: preferred, admitted, deprecated for a forbidden one, superseded for a deprecated term’s) or CSV (a header row, then one row per term and language; variants one per line in their cell; a value a spreadsheet would run as a formula starts with '). Definitions are plain text. Files that are no term are left out. Sent with nosniff; X-Ccms-Terms says how many terms it holds.

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

format*string

tbx or csv.

Value in"tbx""csv"
lang?string

Only this language (a language tag); a term without it is left out. Default: every language.

Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
ref?string

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

Response Body

The file.

response?string
Example Request
curl -X GET 'http://localhost:3000/terms/export?format=tbx'
Example Response
"string"