Guides
Task-indexed — each page stands on its own. New here? Start at Getting started instead.
- Serve JSON files from a folder
- Match on URL path and method
- Match on headers
- Match on the request body
- Return errors and status codes
- Vary the response for one path
- Simulate slow or flaky backends
- Serve over HTTPS
- Reload TLS certificates without restart
- Script with Rhai middleware
- Filter the served file tree
- Add or change a rule
- Check what a request returns
- Validate config in CI
- Dry-run a rule
- Watch matches live
Looking for a runnable, automatically-verified example rather than a
page? See
crates/apimock/examples/ —
several of the guides above link directly into it.