OpenAPI servers and server variables: local, staging, production, regions, and per-tenant hosts from one spec
Hardcoding https://api.example.com means the same spec cannot drive a local mock, a staging test, and a production call. Define multiple servers, use server variables for regions and per-tenant subdomains, and set a relative server for serverless and same-origin docs. Here is how codegen, mocks,...