OpenFolia

Report translation coverage

GET
/reports/translations

One TranslationCoverage per manual the reader may see and target language they may read it in, at ?ref=: how many of the modules it includes (also through module references) are up to date, outdated, at a provider or missing in that language, and how many of their blocks. A module counts exactly where GET /translations/status lists it (so filter[manual], filter[lang] and filter[kind]=module there list the modules counted here; beside them, meta.design, meta.cover and meta.labels count the units of the manual's page design's region text (#656), of its own text (its title, its groups' titles, #731, and its cover images' alternative text, #656) and of the project labels (#731), as the status lists them with filter[kind]=design, filter[kind]=manual and filter[kind]=config); nothing outside the reader’s scope is named or counted. Ordered by the manual’s title, its ID and the configured order of target languages; a manifest that cannot be read is left out. Paged; GET /reports/translations/csv downloads all of it. Needs content.read.draft (in any scope), on top of reading content (content.read); what it names and counts is limited by the reader’s scope, its languages included.

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

filter[manual]?string

Only this manual; one the reader may not see (or that does not exist) matches nothing.

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

Only this target language; one that is not a target language matches nothing.

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

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200
ref?string

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

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/reports/translations'
Example Response
{  "data": [    {      "type": "TranslationCoverage",      "id": "string",      "attributes": {        "manualId": "string",        "lang": "string"      },      "meta": {        "title": "string",        "deprecated": true,        "modules": {          "total": 0,          "upToDate": 0,          "outdated": 0,          "atProvider": 0,          "missing": 0        },        "blocks": {          "total": 0,          "upToDate": 0,          "outdated": 0,          "atProvider": 0,          "missing": 0        },        "design": {          "total": 0,          "upToDate": 0,          "outdated": 0,          "atProvider": 0,          "missing": 0        },        "cover": {          "total": 0,          "upToDate": 0,          "outdated": 0,          "atProvider": 0,          "missing": 0        },        "labels": {          "total": 0,          "upToDate": 0,          "outdated": 0,          "atProvider": 0,          "missing": 0        }      }    }  ],  "meta": {    "page": {      "currentPage": -9007199254740991,      "lastPage": -9007199254740991,      "perPage": -9007199254740991,      "total": -9007199254740991    }  },  "links": {    "self": "string",    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  }}