ODSPSearchGuidancePlugin

当开发代理检测到对 OneDrive 和 SharePoint 搜索 API 的请求时显示警告。

此插件遵循 Microsoft搜索 API 指南

使用 OneDrive 和 SharePoint 搜索 API 的开发人员代理警告的屏幕截图。

此插件检测以下请求:

  • graph.microsoft.com/{version}/drives/{drive-id}/root/search(q='{search-text}')
  • graph.microsoft.com/{version}/groups/{group-id}/drive/root/search(q='{search-text}')
  • graph.microsoft.com/{version}/me/drive/root/search(q='{search-text}')
  • graph.microsoft.com/{version}/sites/{site-id}/drive/root/search(q='{search-text}')
  • graph.microsoft.com/{version}/users/{user-id}/drive/root/search(q='{search-text}')
  • graph.microsoft.com/{version}/sites?search={query}

配置示例

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

配置属性

没有

命令行选项

没有