Archive For December 2021

Using Minimal APIs in ASP.NET Core Razor Pages

calendar_today 14 December 2021 13:33

.NET 6 ASP.NET Core Razor Pages

If you are using ASP.NET Core Razor Pages to develop your web application, you have already decided that the majority of your HTML will be generated on the server. Nevertheless, chances are that you will want to introduce some client side operations into the application to improve its user friendliness in places. If those operations involve data, you will probably want to work with JSON. From .NET 6, you can use a simplified minimal request handler API that works with JSON by default.