Generate and export OpenAPI
An API module groups REST Flows and generates an OpenAPI 3.0.4 JSON document. It describes the intended contract; validate it against the deployed runtime before publication. Module name, version and at least one production or test server URL are required for generation.
Generated content
The generator builds document information and servers from API module properties, then adds an operation for each linked REST Flow. The operation includes configured method/path metadata, groups, summary, description, parameters, request and response Definition schemas, MIME types and the configured success/client/server response codes.
It also declares:
- an API-key security scheme using the
X-ApiKeyrequest header; and - a bearer scheme described as a JWT bearer token.
These declarations describe possible client contracts. They do not configure or enforce authentication in the reviewed Velox API Service dispatcher. Publish only schemes that the deployed gateway genuinely implements and tests.
Generate the document
- Create or open an API module in the test context.
- Enter the API name, version, description and reviewed test and production base URLs. At least one URL is required.
- Add only active, tested REST Flows. Review endpoint uniqueness, methods, request/response Definitions, parameters and status codes.
- Enter contact, terms, licence, tags and external-documentation values only when approved.
- Select Create OpenAPI schema and resolve every validation error.
- Inspect the JSON, then export it to a selected
.jsonfile or the configured web installation path. The default safe filename is derived from API name and version; web export writes beneathwwwroot/openapi. - Validate the exported document with an approved OpenAPI validator and exercise every operation through the deployed gateway.
Contract checks
Generated API-key and bearer schemes do not establish authentication in Velox API Service. Ensure the document matches the gateway's real credential, scope and error contract. Also compare each operation with observed runtime behaviour because the current dispatcher supports GET and POST only and does not visibly enforce the configured REST method.
Check that:
- every path is stable and unique, and no FID-based temporary path remains;
- request/response required fields, types, formats, MIME types and examples match the selected Definitions;
- response codes and
application/problem+jsonerrors match tested outcomes; - server URLs do not expose internal hostnames or an unintended test environment;
- contact, licence and external-documentation values are approved for public disclosure; and
- security requirements match gateway enforcement, including anonymous endpoints and scopes.
Regenerate and redeploy the document whenever a linked Flow contract changes. Keep the prior approved file for rollback and verify that the front end serves the expected version.