Skip to content

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:

cargo run -p service-http --features openapi

Runtime endpoint:

  • /openapi.json

Enable Scalar as well:

cargo run -p service-http --features "openapi scalar-docs"

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:

make docs-sync-public

The generation path uses the full documentation feature profile:

  • openapi
  • s3

Build The Public Docs Site

From this public documentation repository:

make docs

Preview The Public Docs Site

make docs-serve

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.