Dela via


GraphClientRequestIdGuidancePlugin

Visar ett tips när en begäran till Microsoft Graph API inte innehåller client-request-id-huvudet.

Skärmbild av en kommandotolk med Dev Proxy som visar ett tips när du har upptäckt en begäran till Microsoft Graph API utan huvudet client-request-id.

Konfigurationsexempel

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

Konfigurationsegenskaper

Ingen

Kommandoradsalternativ

Ingen