control
set the proxy / mock operating mode
Sets the operating mode that controls how unmatched requests are handled. SIMULATE matches expectations and returns a 404 for unmatched requests; SPY matches expectations but forwards (and records) unmatched requests to the real downstream; CAPTURE forwards and records all traffic (the same proxy-on-no-match behaviour as SPY).
put/mockserver/mode
Request
- Base URL: http://localhost:1080
- URL: http://localhost:1080/mockserver/mode
- Auth: none declared
Query parameters
mode'SIMULATE' | 'SPY' | 'CAPTURE' required
the operating mode to set
Response
mode set successfully
Changes
No recorded changes to this operation across all 1 revision of this API.