OpenAPI Import

Generate mock endpoints from your OpenAPI specs instantly.

Supported Formats

  • OpenAPI 3.0.x (JSON or YAML)
  • OpenAPI 3.1.x (JSON or YAML)
  • Swagger 2.0 (JSON or YAML)

How to Import

  1. Open your project and click "Import Spec"
  2. Paste your OpenAPI spec (JSON or YAML)
  3. Click "Import"
  4. Endpoints are created based on paths and methods

Response Generation

Mockspec generates mock responses from your spec:

  • Uses example values from schemas when available
  • Generates realistic data based on schema types and formats
  • Respects required fields and default values

Import Options

  • Overwrite existing - Replace endpoints with matching method + path
  • Skip duplicates - Keep existing endpoints, only add new ones

Need help? Contact support