Import an OpenAPI spec
import_openapiImport an OpenAPI/Swagger spec (v2, v3.0, v3.1; JSON or YAML) into a workspace, generating one mock endpoint per operation with responses taken from the spec's examples. Clean CRUD path-groups become live stateful Resources (with inferred fields and seed records) served at the spec's own paths, instead of static endpoints. Provide either spec (the raw text) or url. Generated objects are placed in a folder named after the spec; re-importing the same spec reconciles instead of duplicating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to fetch the spec from. Provide this or `spec`. | |
| spec | No | Raw spec text (JSON or YAML). Provide this or `url`. | |
| workspace | Yes | Workspace slug (from list_workspaces). |