Skip to content

Instantly share code, notes, and snippets.

@waldekmastykarz
Created April 25, 2023 11:58
Show Gist options
  • Save waldekmastykarz/9b5e054076a43a40e635df64a757eed1 to your computer and use it in GitHub Desktop.
Save waldekmastykarz/9b5e054076a43a40e635df64a757eed1 to your computer and use it in GitHub Desktop.
Excluding URLs in Microsoft Graph Developer Proxy
{
"plugins": [
{
"name": "GraphRandomErrorPlugin",
"enabled": true,
"pluginPath": "GraphProxyPlugins\\msgraph-developer-proxy-plugins.dll",
"configSection": "graphRandomErrorsPlugin"
}
],
"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/*",
"!https://*.sharepoint.*/*_api/web/GetClientSideComponents",
"https://*.sharepoint.*/*_api/*",
"https://*.sharepoint.*/*_vti_bin/*",
"https://*.sharepoint-df.*/*_api/*",
"https://*.sharepoint-df.*/*_vti_bin/*"
],
"graphRandomErrorsPlugin": {
"allowedErrors": [ 429, 500, 502, 503, 504, 507 ]
},
"rate": 50
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment