MockResponsePlugin
Simulates responses.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for