MockResponsePlugin

Simulates responses.

Screenshot of a command prompt with Dev Proxy simulating response for a request to GitHub API.

Plugin instance definition

{
  "name": "MockResponsePlugin",
  "enabled": true,
  "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
  "configSection": "mocksPlugin"
}

Configuration example

{
  "mocksPlugin": {
    "mocksFile": "mocks.json"
  }
}

Configuration properties

Property Description Default
mocksFile Path to the file containing mock responses mocks.json
blockUnmockedRequests Return 502 Bad Gateway response for requests that aren't mocked false

Command line options

Name Description Default
-n, --no-mocks Disable loading mock requests false
--mocks-file Path to the file containing mock responses -

More information