Docs/Import & Export

Import & Export

Mock Studio provides multiple ways to move data in and out of the extension.

Full Backup (Settings)

Export and import all your data at once from Settings → Data Management.

Export All Data

  1. Go to Settings
  2. Click "Export Backup"
  3. A JSON file is downloaded containing all projects, mocks, folders, environments, and scenarios
  4. The filename includes the date: mock_studio_backup_2025-01-15.json

Import Backup

  1. Go to Settings
  2. Click "Import Backup"
  3. Select a previously exported JSON file
  4. Warning: This overwrites ALL existing data
  5. Confirm the import — the app will reload with the restored data

Factory Reset

Start fresh by deleting all data:

  1. Go to Settings → Data Management
  2. Click "Reset All"
  3. Confirm the permanent deletion
  4. All projects, mocks, settings, and history are erased

Project Export/Import

Export and import individual projects without affecting other data.

Export a Project

  1. Open the project details
  2. Click Export from the actions menu
  3. The exported JSON includes:

- Project metadata

- All mocks with variants

- Folders structure

- Environments and variables

- Scenarios with overrides

Import a Project

  1. Open a project or the project list
  2. Use the Import action
  3. Select a project JSON file
  4. The project is created with "(Imported)" suffix
  5. All internal ID references are remapped automatically

OpenAPI / Swagger Import

Bootstrap mocks from an API specification:

  1. Open a project
  2. Click Import OpenAPI in the actions menu
  3. Paste your OpenAPI specification (JSON or YAML)
  4. Mock Studio generates mocks for each endpoint:

- Correct HTTP methods

- URL patterns from path definitions

- Sample response bodies from response schemas

- Appropriate status codes

cURL Integration

In the Mock Editor:

  • Import cURL — Paste a cURL command to populate method, URL, and headers
  • Copy cURL — Export the mock as a cURL command for sharing or testing

GitHub Sync

Sync project data with a GitHub repository:

  1. Configure repository details (owner, repo, branch, path, token)
  2. Push — Upload project data to GitHub
  3. Pull — Download and overwrite local data from GitHub

Ideal for:

  • Team collaboration — Share mock definitions via Git
  • Version control — Track changes to mock configurations
  • CI/CD integration — Use the same mocks in automated tests