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.
Importing OpenAPI Specs
Section titled “Importing OpenAPI Specs”Supported Formats
Section titled “Supported Formats”- OpenAPI 3.0 and 3.1
- JSON and YAML formats
- Local files or URLs
How to Import
Section titled “How to Import”- Click Import in the project toolbar
- Select OpenAPI Specification
- Choose your spec file (
.jsonor.yaml) - Preview the endpoints that will be created
- Choose import options:
- Overwrite existing: Replace endpoints with matching paths
- Skip existing: Keep current endpoints, only add new ones
- Click Import
What Gets Imported
Section titled “What Gets Imported”- 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
Preview Before Import
Section titled “Preview Before Import”The preview screen shows:
- Number of endpoints to be created
- Any conflicts with existing endpoints
- Warnings for unsupported features
Exporting to OpenAPI
Section titled “Exporting to OpenAPI”Export your mock endpoints as an OpenAPI 3.0 specification.
How to Export
Section titled “How to Export”- Click Export in the project toolbar
- Select OpenAPI Specification
- Choose format: JSON or YAML
- Click Export and choose save location
What Gets Exported
Section titled “What Gets Exported”- 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
Use Cases
Section titled “Use Cases”- 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)
Other Import Formats
Section titled “Other Import Formats”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