Bagikan melalui


GraphMockResponsePlugin

Menimbut respons terhadap API Microsoft Graph. Mencakup semua fungsionalitas MockResponsePlugin dan menambahkan dukungan untuk meniru permintaan batch Microsoft Graph API.

Cuplikan layar prompt perintah dengan Dev Proxy yang menipu respons terhadap Microsoft Graph API.

Contoh konfigurasi

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

Lihat MockResponsePlugin untuk opsi konfigurasi lainnya.

Properti konfigurasi

Lihat MockResponsePlugin

Opsi baris perintah

Lihat MockResponsePlugin