Condividi tramite


GraphMockResponsePlugin

Simula le risposte alle API Microsoft Graph. Include tutte le funzionalità del MockResponsePlugin e aggiunge il supporto per simulare le richieste batch dell'API Microsoft Graph.

Screenshot di un prompt dei comandi con Dev Proxy simulando una risposta a un'API Microsoft Graph.

Esempio di configurazione

{
  "$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"
  }
}

Per altre opzioni di configurazione, vedere MockResponsePlugin .

Proprietà di configurazione

Vedere MockResponsePlugin

Opzioni della riga di comando

Vedere MockResponsePlugin