Importing an OpenAPI document¶
How-to guideThe steps for one task.
If a backend has an OpenAPI 3 description, the console turns it into an API with one operation per path and method.
- Admin → Import & export → Import an API → OpenAPI document: paste the document and pick the upstream.
- The preview lists the proposed API (name and base path from the document's servers and title) and its operations with paths and methods. Edit anything before creating; untick operations you do not want exposed.
- Create in the draft. Nothing is deployed until you deploy.
The document is attached to the API and shown on its Overview. Policies are yours to add: the
import creates routing only, so a freshly imported API is public until you bind api-key or
jwt.
Paths and parameters¶
/users/{id} becomes an operation with a path parameter available to policies as
${path.id}. Paths without a parameter are exact matches; add a catch-all operation
(/{rest...}) if the backend has endpoints the document omits.
Re-importing¶
Import the new version of the document as a new API version (Versions → New version first, then import into it), so the old shape keeps serving while you review the new one.
Schema validation¶
The import keeps the document's request schemas: every operation that declares a JSON request
body or path, query or header parameters gets a validate policy with them, and the
gateway refuses a request that does not match with 400 and the violations. The preview marks
those operations with validates body, query, …. Validating requests
has the rules and the hand-written form.
Postman collections¶
An API kept in Postman imports the same way, from the Postman collection choice next to this one, with its backend and its auth as suggested policies: Importing a Postman collection.