Skip to content

Instantly share code, notes, and snippets.

@maciejgos
Created June 2, 2018 17:12
Show Gist options
  • Save maciejgos/4bc0650aa72dd94e61b798e94da83aeb to your computer and use it in GitHub Desktop.
Save maciejgos/4bc0650aa72dd94e61b798e94da83aeb to your computer and use it in GitHub Desktop.
Azure Functions CLI v2.0.1-beta.28
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="proxies.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.13" />
</ItemGroup>
</Project>
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"mock1": {
"matchCondition": {
"route": "api/mock/getwelcomemessage",
"methods": [
"GET"
]
},
"backendUri": "",
"responseOverrides": {
"response.statusCode": "200",
"response.statusReason": "OK",
"response.headers.Content-Type": "application/json",
"response.body":{
"message":"Hello from mock"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment