OpenFolia

Check a manual

GET
/manuals/{id}/checks

Blocking issues and warnings found in a manual at ?ref=, each at its module (in one language) and block, or at the manual: the manifest’s validation issues, every published variant resolved in every language the reader may read it in (missing modules, translations and text or variant attributes, cross-references, module reference cycles), and the checks of every module it includes (validation, module references, images the blob store does not hold), and, unless pdf.standard is none, each variant’s PDF in each language rendered to check PDF/UA-1 (pdf-accessibility, pdf-not-checked), and, with a page design, what its layout cannot fit (page-design-overflow, running-head-truncated), and, with a callout legend beside an image, a legend cut off at the image’s height (callout-label-overflow, whatever pdf.standard), and, with a page design, a safety message taller than a page, broken across pages (safety-message-split). Only what the reader may see: nothing about a module they may not see is listed or counted. Ordered by subject (the manual, then modules by language and ID), then by where the block is. Derived on every request; depends on the blob store too, so never immutable.

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

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

Query Parameters

filter[severity]?string

Only checks of this severity: blocking or warning.

Value in"blocking""warning"
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/manuals/operating/checks'
Example Response
{  "data": [    {      "type": "Check",      "id": "string",      "attributes": {        "code": "invalid-module",        "severity": "blocking",        "category": "validation",        "subject": {          "type": "module",          "lang": "string",          "moduleId": "string"        },        "blockId": "string",        "message": "string",        "params": {          "property1": "string",          "property2": "string"        }      },      "meta": {        "variants": [          "string"        ],        "languages": [          "string"        ],        "title": "string"      }    }  ],  "meta": {    "page": {      "currentPage": -9007199254740991,      "lastPage": -9007199254740991,      "perPage": -9007199254740991,      "total": -9007199254740991    },    "counts": {      "blocking": -9007199254740991,      "warning": -9007199254740991    },    "modules": {      "checked": -9007199254740991,      "withoutIssues": -9007199254740991    },    "commit": "string"  },  "links": {    "self": "string",    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  }}