Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Contracts

The repository publishes generated OpenAPI contract artifacts for the current gateway and platform route metadata:

These files are generated artifacts. Do not edit them by hand.

The gateway OpenAPI artifact describes the external /api surface used by browser clients and deployed service consumers. The gateway also serves the same embedded contract at /api/openapi.json; operation extensions keep the canonical service route metadata aligned with the external path prefix.

make openapi-generate
make openapi-check
make gateway-contract-check

make openapi-check verifies that the checked-in OpenAPI files match the route metadata compiled into the service crates. make gateway-contract-check also proves the gateway route metadata, fake-provider replay cases, protocol-family coverage, authorization action ids, provider-native denial contract, and OpenAPI extensions stay aligned.

The current OpenAPI files intentionally use permissive request and response schemas while the service contracts are still stabilizing. The stable contract surface today is the path, method, operation id, authorization extensions, resource kind, protocol family, and access boundary metadata. Typed request and response schemas should be added incrementally once those payload contracts are stable enough for generated clients.