Secure Azure App Service Web API via Restriction Rules

Note: This will not work with a Blazor Client app because the call to the web api will be from the browser of the client. By setting up access restrictions, you can define a priority-ordered allow/deny list that controls network access to your app. The list can include IP addresses or Azure Virtual Network subnets.... » read more

Create a gRPC client and server in ASP.NET Core

Warning ASP.NET Core gRPC is not currently supported on Azure App Service or IIS. The HTTP/2 implementation of Http.Sys does not support HTTP response trailing headers which gRPC relies on. For more information, see this GitHub issue. Sources: Create a .NET Core gRPC client and server in ASP.NET Core | Microsoft Docs

.NET Web API Return JSON instead of XML

By default, Web API returns both XML and JSON depending the the client. You the specifically specify what format you return. Bounding WebAPI to send only json formatted data Now there are cases where we want our application to receive only JSON formatted data irrespective of the ACCEPT header value. To achieve this, add a... » read more

Web Api Help Pages

Setup Note: When setting up Web Api Help Pages, make sure to enable it in your app, else the description field will not work. Go to Areas\HelpPage\App_Start\HelpPageConfig.cs. Around line 36, you’ll want to make sure you uncommented the line as below: Go to Project=>Properties=>Build. Under Output, make sure the “XML documentation file” box is checked,... » read more