Skip to content

OpenAPI Import/Export

API Dev Studio supports importing OpenAPI 3.x specifications to quickly generate mock endpoints, and exporting your mocks back to OpenAPI format for documentation or sharing.

  • OpenAPI 3.0 and 3.1
  • JSON and YAML formats
  • Local files or URLs
  1. Click Import in the project toolbar
  2. Select OpenAPI Specification
  3. Choose your spec file (.json or .yaml)
  4. Preview the endpoints that will be created
  5. Choose import options:
    • Overwrite existing: Replace endpoints with matching paths
    • Skip existing: Keep current endpoints, only add new ones
  6. Click Import
  • Paths become mock endpoints
  • Methods (GET, POST, PUT, DELETE, etc.)
  • Example responses become the response body
  • Response schemas are used to generate sample data if no examples exist
  • Path parameters like {id} are preserved

The preview screen shows:

  • Number of endpoints to be created
  • Any conflicts with existing endpoints
  • Warnings for unsupported features

Export your mock endpoints as an OpenAPI 3.0 specification.

  1. Click Export in the project toolbar
  2. Select OpenAPI Specification
  3. Choose format: JSON or YAML
  4. Click Export and choose save location
  • All enabled mock endpoints
  • Path and method configuration
  • Response status codes
  • Response body as examples
  • Response variations as named examples
  • Inferred JSON schemas from response bodies
  • Generate documentation from your mocks
  • Share API contracts with team members
  • Seed API gateways with mock definitions
  • Create Postman collections (import the OpenAPI spec into Postman)

API Dev Studio also supports importing from:

  • Postman Collections — Import Postman Collection v2.1 files with folder structure, selective import, and automatic variable mapping
  • cURL Commands — Paste a cURL command to instantly create a mock endpoint