The document is assembled per request rather than once at boot, because the server URL it
advertises must be the host that answered: the same artefact runs behind a local port, a load
balancer and an API Gateway stage, and a URL frozen at build time is wrong for at least two of
them. Configuration wins when it declares servers explicitly.
Serves the OpenAPI contract and its explorer.
The document is assembled per request rather than once at boot, because the server URL it advertises must be the host that answered: the same artefact runs behind a local port, a load balancer and an API Gateway stage, and a URL frozen at build time is wrong for at least two of them. Configuration wins when it declares
serversexplicitly.