OpenFolia

The QR code of a stable address, as SVG

GET
/d/{product}/{manual}/{variant}/{lang}/qr.svg

A QR code of the address’s URL (CCMS_PUBLIC_URL and its path), for print: error correction Q, a quiet zone of four modules, one path, sharp at any size. Made only for an address that opens for the reader. Who may open it is delivery.access in openfolia.yaml on main, at most the deployment’s CCMS_DELIVERY_MAX_ACCESS (default public, no cap): public, anyone, without a token, as a reader of the delivery.publicAudience level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no Vary: Cookie or Authorization); signed-in (default), a reader with a token or a signed-in session, in their scope (401 without one); off, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to.

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

product*string

The product: a value of the product facet.

manual*string

The manual’s address: delivery.manuals.<id>.slug, else its ID; a former one (formerly) is 301 to the current.

variant*string

The variant’s slug (model=large).

lang*string

The language; <lang>@<revision> pins one release (en@2.1), else the product’s latest release (the newest of main not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (delivery.missingLanguage).

Response Body

The QR code, made by the API (no network call).

response?string
Example Request
curl -X GET 'http://localhost:3000/d/north/operating/model=large/en/qr.svg'
Example Response
"string"