Bagikan melalui


GraphClientRequestIdGuidancePlugin

Menampilkan tip saat permintaan ke Microsoft Graph API tidak menyertakan header client-request-id.

Cuplikan layar prompt perintah dengan Dev Proxy memperlihatkan tip setelah mendeteksi permintaan ke Microsoft Graph API tanpa header client-request-id.

Contoh konfigurasi

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "GraphClientRequestIdGuidancePlugin",
      "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