API Docs Mode¶
Purpose¶
Use this page to understand the two documentation surfaces for the service: runtime API docs exposed by the service binary and the static public documentation site.
Runtime OpenAPI Endpoints¶
Enable the runtime raw spec when running the service from a source checkout or service build:
Runtime endpoint:
/openapi.json
Enable Scalar as well:
Additional runtime endpoint:
/docs
Public Docs-Site Raw Spec¶
The public docs site serves a generated raw spec at docs/api/openapi.json.
That file is generated from the private service implementation and synchronized into this repository. From the private implementation checkout, run:
The generation path uses the full documentation feature profile:
openapis3
Build The Public Docs Site¶
From this public documentation repository:
Preview The Public Docs Site¶
Swagger Editor Card¶
The docs homepage includes a Swagger Editor card that can preload api/openapi.json when the docs site is hosted at a public URL.
When you browse the docs locally, the card opens the raw generated asset at api/openapi.json instead.