API reference
Two ways to consume the API surface:
-
Browse the rendered docs - open
docs/api/index.htmlin a browser. Pre-rendered from the spec via Redocly so it works without a server. -
Pull the raw spec - the canonical OpenAPI 3.0 spec lives at
backend/internal/openapi/openapi.yaml. It’s embedded in the API binary viago:embedand served atGET /api/v1/openapi.yamlon any running instance:curl http://localhost:8080/api/v1/openapi.yamlUse it to generate typed clients (
openapi-typescript-codegen,oapi-codegen, etc.).
Regenerating the rendered docs
The HTML in this directory is a build artefact, but it’s checked in so the docs work without a build step. Refresh after any change to the OpenAPI spec:
make api-docs # wraps `redocly build-docs` + `redocly lint`