Managing Simulations
Simulations are isolated Sandbox environments that host your mock API endpoints. This guide covers creating, configuring, and managing simulations through the web application.
Creating a Simulation
- Click New Simulation from the dashboard
- Fill in the simulation details:
- Name - A descriptive name for the simulation
- Description (optional) - What this simulation models
- Base path - The URL prefix for all routes (e.g.,
/api/v1) - Protocol - HTTP/HTTPS (default), or multi-protocol
- Click Create
Your simulation is assigned a unique URL:
https://<simulation-id>.srstg.io/<base-path>
Simulation Settings
Access settings via the gear icon on any simulation:
General
- Name & description - Update simulation metadata
- Base path - Change the URL prefix (caution: breaks existing consumers)
- Tags - Categorize simulations for organization
Behavior
- Default response delay - Add simulated latency to all responses (ms)
- CORS configuration - Control cross-origin access
- Request logging - Enable/disable request capture for debugging
State
- State management - Enable/disable stateful mocking
- Reset state - Clear all state data for this simulation
- State snapshot - Save/restore state at a point in time
Simulation Lifecycle
| Action | Description |
|---|---|
| Start | Activate the simulation to accept requests |
| Stop | Deactivate without deleting configuration |
| Reset | Clear all state and logs, keep configuration |
| Clone | Create a copy with all routes and settings |
| Delete | Permanently remove the simulation |