Skip to main content
Most HTTP services describe one endpoint several times. The router knows the path, validation code knows the payload, authorization code knows the caller, and an OpenAPI file tries to repeat all of it. Those copies eventually disagree. HTTPAPI makes the executable endpoint contract the shared source.

Replace scattered policy with one contract

The result is not less domain code. It is less duplicated HTTP policy around that code.

Keep business work outside HTTPAPI

HTTPAPI owns the boundary around a handler. It can establish that a request is well-formed, authenticated, available to its caller, within limits, and safe to execute once. It does not decide whether a customer owns a resource or whether an order may change state. Those decisions still belong to the domain service, where current application state and transactions are available.

Treat OpenAPI as an output

OpenAPI is useful for client generation and API discovery, but it cannot represent every runtime rule without extensions or loss. HTTPAPI therefore transcribes OpenAPI from the executable contract. OpenAPI does not become the runtime model.
If you want a Go service to execute and publish the same contract, start with the quickstart. If you need a language-neutral implementation contract, use the HTTPAPI specification.