模擬圖形 API Microsoft回應。 包含 MockResponsePlugin 的所有功能,並新增模擬Microsoft Graph API 批次要求的支援。
組態範例
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
"plugins": [
{
"name": "GraphMockResponsePlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "mocksPlugin"
}
],
"mocksPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/mockresponseplugin.schema.json",
"mocksFile": "mocks.json"
}
}
更多設定選項請參閱 MockResponsePlugin 。