In this video, I will walk through the new Minimal API feature of .NET 6 and C# 10.
C# 10 and .NET 6 were released last week, during the .NET Conference. And there were a lot of new features that were added both as a part of the C# 10 and .NET 6 framework. I will cover some of these features in the upcoming weeks. One of the most anticipated and controversial features is arguable the Minimal API.
00:10 - What will be covered in this video
00:32 - An introduction to Minimal API
01:00 - Usecase for using Minimal API
01:32 - Creating a New Console Application for the demo
02:45 - Introduction of implicit namespace using
03:40 - Couple of lambda feature upgrades which are predecessor for Minimal API
09:20 - Converting the console application to Minimal API
10:00 - Writing a Minimal API with 4 lines of code
11:30 - Running the Minimal GET API
12:00 - Using dependency injection with Minimal API
15:25 - Visual Studio 2025 Hot reload feature
16:20 - Create a POST Minimal API
19:30 - Using Swagger with Minimal API