Migrate controllers to Minimal APIs using API versioning
Download the code that shows how controllers are migrated to Minimal API endpoints using API versioning in an ASP.NET Core Web API.
ASP.NET Core Web API CRUD methods example
Download an ASP.NET Core Web API code example which includes endpoints for each of the CRUD methods (Create, Read, Update and Delete).
FromQuery and other ASP.NET Core Web API attributes
An ASP.NET Core code sample that features examples of FromQuery, FromHeader, FromForm, FromRoute, FromServices and FromBody in a Web API.
Data Annotation custom validator in ASP.NET Core
Download a Data Annotation custom validator written in C# that can be used in .NET with MVC and Web API for model validation.
A FromBody and FromQuery sample in ASP.NET Core Web API
An ASP.NET Core example of using the FromBody and FromQuery attribute. Handy if your request is null, or getting a 415 error.
Browse by topic