OpenFolia

Open a manual at its stable address

GET
/d/{product}/{manual}/{variant}/{lang}

The manual as a web page, as GET /manuals/{id}/variants/{variant}/{lang}/html renders it, at the product’s latest release (or the pinned one): the address to print and to link (#450). A new release moves it at once (no-cache, with an ETag known before the page is rendered, from the release, the reader’s scope, the theme and the build, CCMS_BUILD_ID: a revalidation is a 304 without rendering); a pinned address revalidates too (no-cache, with an ETag), so a withdrawal or a change of delivery.access reaches every cache, public for a public reader, else private. A pinned release that was withdrawn is 410 with a notice linking the latest address. 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).

Query Parameters

theme?string

Colour scheme. auto (default) follows the viewer’s prefers-color-scheme; light and dark force one.

Default"auto"
Value in"auto""light""dark"

Response Body

The page.

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