2
Exploring Minimal APIs and Their Advantages
In this chapter of the book, we will introduce some of the basic themes related to minimal APIs in .NET 6.0, showing how they differ from the controller-based web APIs that we have written in the previous version of .NET. We will also try to underline both the pros and the cons of this new approach of writing APIs.
In this chapter, we will be covering the following topics:
- Routing
- Parameter binding
- Exploring responses
- Controlling serialization
- Architecting a minimal API project
Technical requirements
To follow the descriptions in this chapter, you will need to create an ASP.NET Core 6.0 Web API application. You can either use one of the following options:
- Option 1: Click on the New | Project
Get Mastering Minimal APIs in ASP.NET Core now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.