Rule components
Every routing rule has four parts:Match criteria
An HTTP method (or wildcard) and a path pattern (exact, parameterized, or wildcard). Both must match for the rule to trigger.
Priority
A number that controls evaluation order. Higher numbers run first. Rules with the same priority can match in any order — use distinct priorities to be explicit.
Action
Either
mock (return a configured fixture) or proxy (forward to the collection’s target endpoint). You can switch between them with the toggle in the dashboard.Configuration
For mock rules: response status, headers, body, and latency range. For proxy rules: optional response shaping (status, headers, body transforms).
Method matching
The method field on a rule can be a specific HTTP verb or a wildcard:| Method value | Matches |
|---|---|
GET | Only GET requests |
POST | Only POST requests |
PUT | Only PUT requests |
DELETE | Only DELETE requests |
* | Any HTTP method |
Path matching
Path patterns support three styles:Exact match
Exact match
The rule path must match the incoming request path character-for-character. Query parameters are ignored.
Parameterized match
Parameterized match
Use
:param segments to match variable path components. Useful for resource IDs.Wildcard match
Wildcard match
A Wildcards are most useful for the default rule (which uses
* path matches any request path, regardless of depth or content.*) or for catch-all rules that proxy everything below a certain point.Priority and evaluation order
Rules are evaluated from highest priority to lowest. The first rule whose method and path both match the incoming request is applied — GoDizzy stops evaluating after that.Example rule set
Here’s what a typical collection’s rules might look like for a payments API:| Priority | Method | Path | Action | Purpose |
|---|---|---|---|---|
| 100 | POST | /v1/charges | mock | Return a fixture charge response |
| 90 | GET | /v1/charges/:id | mock | Return a fixture charge by ID |
| 80 | POST | /v1/refunds | mock | Simulate a 429 rate-limit response |
| 10 | * | * | proxy | Default: forward everything else to Stripe |
- A
POST /v1/chargesrequest triggers rule 100 and gets back a mock fixture. - A
GET /v1/charges/ch_abc123triggers rule 90 and gets back a mock charge. - A
GET /v1/customersdoesn’t match rules 100, 90, or 80, so it falls through to the default rule and is proxied tohttps://api.stripe.com.
The default rule
Every collection has exactly one default rule. It matches all methods and all paths (*) and is always the lowest-priority rule in the collection. If no other rule matches an incoming request, the default rule handles it.
The default rule cannot be deleted. It acts as a guaranteed fallback so that no request is left unhandled. You can change its action between mock and proxy, but you cannot remove it.
proxy, which means all traffic is forwarded to the collection’s target endpoint until you add more specific rules.
