openapi
The openapi block configures global document metadata exported into your OpenAPI 3.1 specifications and documentation viewers.
Top level attributes
Nested blocks
server
Declares target deployment origins:
If you don't declare any server block, hclapi defaults to url = "/". This keeps browser documentation portals like Scalar and Swagger on the exact same origin, so you won't run into CORS issues during local testing.
tag
Organizes routes into logical groups inside documentation portals: