Environments
Environments are reusable groups of routes and responses that can be shared across simulations and teams.
What Are Environments?
An environment packages a set of related API routes into a portable unit. Use environments to:
- Share mock configurations across team members
- Version your API mocks alongside your code
- Publish to the SureStage library for organization-wide reuse
- Import community or partner-provided mock templates
Creating an Environment
- Navigate to Environments in the sidebar
- Click New Environment
- Add metadata:
- Name - Descriptive name (e.g., "Stripe Payment API v2")
- Description - What the environment simulates
- Tags - Categorization labels
- Add routes manually or import from an existing simulation
From an Existing Simulation
- Open a simulation
- Select the routes you want to include
- Click Save to Environment
- Choose an existing environment or create a new one
Using Environments
Apply to a Simulation
- Open a target simulation
- Click Import > From Environment
- Browse or search available environments
- Select and apply - routes are added to the simulation
Versioning
Environments support semantic versioning:
- Publish a version to lock the configuration
- Update the draft to make changes
- Compare versions to see what changed
Library
The organization library contains published environments available to all team members. Admins can curate featured environments and manage access.