Bagikan melalui


GraphSdkGuidancePlugin

Menampilkan tip saat proksi mencegat permintaan ke Microsoft Graph yang belum dikeluarkan oleh Microsoft Graph SDK.

Cuplikan layar prompt perintah dengan Proksi Dev memperlihatkan tips yang menyarankan penggunaan Microsoft Graph SDK setelah mencegat permintaan ke Microsoft Graph yang tidak menggunakan SDK.

Contoh konfigurasi

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "GraphSdkGuidancePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
    }
  ],
  "urlsToWatch": [
    "https://graph.microsoft.com/v1.0/*",
    "https://graph.microsoft.com/beta/*",
    "https://graph.microsoft.us/v1.0/*",
    "https://graph.microsoft.us/beta/*",
    "https://dod-graph.microsoft.us/v1.0/*",
    "https://dod-graph.microsoft.us/beta/*",
    "https://microsoftgraph.chinacloudapi.cn/v1.0/*",
    "https://microsoftgraph.chinacloudapi.cn/beta/*"
  ]
}

Properti konfigurasi

Tidak

Opsi baris perintah

Tidak

Langkah selanjutnya