Request maps
Request maps return a mocked response for a matching request, without calling the server.
When to use request maps
- Build offline demos or reproduce bugs reliably.
- Replace unstable endpoints with known data.
- Test edge cases by returning custom responses.
Create a request map
- Open Settings → Request Maps.
- Tap Add Map.
- Choose a Match pattern (exact, contains, wildcard, or regex).
- Configure the Mock Response (status, headers, body).
- Save and enable the map.
Mock response options
- Inline body: paste JSON, text, or binary data.
- File body: load from a file in Trace storage.
- Template body: render with request context.
- Scripted body: generate dynamically when scripting is enabled.
Tips
- Use exact match for narrow targeting.
- Start with a real request and build a map from it to preserve headers.
- Keep mock files small for faster iteration.