.NET 6 Minimal API [Create a GET API with only 4 lines of code (.NET 6 and C# 10)]

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

At 01:46, I mistakenly said I installed Visual Studio 2020, what I really wanted to say is Visual Studio 2022.

DotNetCoreCentral
Автор

Your method of writing code and explaining the same goes directly into my head smoothly. Nicely presented, please keep up the good work.

eckite
Автор

You are explaining very nice..! .Net 6 looks great and smart IntelliSense

RameshKumar-grdt
Автор

It looks like NODE code now.. NOT AN IMPRESSIVE feature though...

hydtechietalks
Автор

Microsoft keeps making messy, complicated code with steep learning curve just to make them appear "on top" of all tech stack, they did away with visual basic, visual basic.net, and now their C# is like morphing into Typescript-based Angular from being Angular 1. Not impressed with .net 6.

STUPIDYOUTUBE_HIDINGMSGS