Learn Minimal APIs from start to finish. Perfect for beginners.

Minimal APIs tutorials

Build a .NET 10 Web API - Minimal APIs, EF Core & SQL Server
Build a .NET 10 Web API - Minimal APIs, EF Core & SQL Server

Build a .NET 10 Web API with Minimal APIs, Entity Framework Core and SQL Server, using Clean Architecture and FluentValidation.

How to migrate from controllers to Minimal APIs
How to migrate from controllers to Minimal APIs

Learn why Minimal APIs are now recommended in .NET and follow a step-by-step guide to migrate from controllers to Minimal APIs with versioning and Swagger.

The simplest way to secure a Minimal API (With Swagger)
The simplest way to secure a Minimal API (With Swagger)

Secure your .NET Minimal API quickly using API key authentication, with full Swagger support for testing and protecting endpoints.

Minimal APIs: Fix missing OpenAPI response documentation
Minimal APIs: Fix missing OpenAPI response documentation

Learn why Minimal APIs often miss OpenAPI response types and how to fix missing 404, 400, and 500 responses using TypedResults and Produces methods.

ASP.NET Core route constraints: A practical guide
ASP.NET Core route constraints: A practical guide

Learn how ASP.NET Core route constraints work, the built-in constraint types available, and how to add them to your Minimal API or controller routes with examples.

How to upload files in an ASP.NET Core Web API
How to upload files in an ASP.NET Core Web API

Learn how to upload files with IFormFile and IFormFileCollection using minimal APIs in ASP.NET Core, and how to generate antiforgery tokens.

How to add unit testing to Minimal APIs routes using xUnit
How to add unit testing to Minimal APIs routes using xUnit

Learn how to unit test minimal API endpoint handlers in ASP.NET Core using xUnit by organising routes and handlers into separate classes.

Add API key authentication to an Minimal API endpoint
Add API key authentication to an Minimal API endpoint

Learn how to add API key authentication to minimal API endpoints using a saved key in the config and apply a fallback policy to secure all routes.

Minimal API filters: Run code before the endpoint handler
Minimal API filters: Run code before the endpoint handler

Learn how to add multiple endpoint filters to minimal API routes to run custom logic before and after your endpoint handlers.

TypedResults or Results for Minimal API responses?
TypedResults or Results for Minimal API responses?

Learn when to use TypedResults vs Results in minimal APIs and explore the different response types available for returning API responses.