OpenFolia

An image of a stable address’s page

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

An image the page shows, as GET /assets/{sha256} serves it at the release’s tag, for the reader. Its bytes never change, but who may read them can (a withdrawal, delivery.access): a public one is public, max-age=86400, s-maxage=<CCMS_DELIVERY_SHARED_MAX_AGE>, proxy-revalidate (a shared cache asks again after that, default 300 s, and is told 410 once the release is withdrawn), a signed-in reader’s private, max-age=86400; the ETag is the hash, so a revalidation is a 304 without reading the file. 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

hash*string
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 image.

response?unknownimage/*
Example Request
curl -X GET 'http://localhost:3000/d/north/operating/model=large/en/assets/string'
Example Response
null