Edit

Share via


GraphMockResponsePlugin

Mocks responses to Microsoft Graph APIs. Includes all functionality of the MockResponsePlugin and adds support for mocking Microsoft Graph API batch requests.

Screenshot of a command prompt with Dev Proxy mocking a response to a Microsoft Graph API.

Configuration example

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "GraphMockResponsePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "mocksPlugin"
    }
  ],
  "mocksPlugin": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/mockresponseplugin.schema.json",
    "mocksFile": "mocks.json"
  }
}

See MockResponsePlugin for more configuration options.

Configuration properties

See MockResponsePlugin

Command line options

See MockResponsePlugin