API Reference
Strategy
Core-X services expose REST APIs. The plan is:
- One OpenAPI spec per service — lives in
openapi/{service}.yamlin the docs repo - Rendered via Redoc — embedded as an iframe or Starlight component
- Validated in CI —
openapi-lintruns on every PR
Current Status
| Service | Spec Status | Rendered |
|---|---|---|
| gateway (:8090) | Planned | — |
| mlx-llm (:8091) | Planned | — |
| mlx-rag (:8092) | Planned | — |
| event-bus (:8085) | Planned | — |
Pipeline
# When specs exist:npx @redocly/cli lint openapi/*.yamlnpx @redocly/cli build-docs openapi/gateway.yaml -o public/api/gateway.htmlContributing a Spec
- Create
openapi/{service}.yamlfollowing OpenAPI 3.1 - Run
npx @redocly/cli lint openapi/{service}.yaml - Add a Redoc build step to
scripts/docgen.mjs - PR to kbllr-docs