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}

插件实例定义

{
  "name": "ODSPSearchGuidancePlugin",
  "enabled": true,
  "pluginPath": "~appFolder/plugins/dev-proxy-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/*"
  ]
}

配置示例

配置属性

命令行选项