.NET 6 Minimal API Full Build

preview_player
Показать описание
In this step by step video we perform a full step by step build of a .NET 6 minimal API. We also contrast and compare it with a MVC API to further understand the differences and similarities between them.

Level: Beginner

🌐 Links 🌐

⏲️ Time Codes ⏲️

PART 1 - INTRODUCTION
- 01:05 Welcome
- 02:48: Video Overview
- 07:42 MVC Refresher
- 10:36 ASP.NET API Architecture
- 15:38 What’s “missing” from Minimal APIs?

PART 2 - CODE BUILD
- 19:47 Scaffold Minimal
- 26:29 Package Dependencies
- 28:25 Initialising User Secrets
- 30:26 Setting up SQL Server with Docker
- 39:30 Model & Dto Creation
- 51:09 DB Context
- 54:40 Connection String
- 1:02:36 Migrating
- 1:07:44 Repository
- 1:23:37 Automapper
- 1:29:52 Quick Controller Review
- 1:34:08 1st minimal endpoint
- 1:42:37 2nd Endpoint – get a single resource
- 1:47:56 3rd Endpoint – create a resource
- 1:58:03 4th Endpoint – update a resource
- 2:03:21 5th Endpoint -delete a resource

PART 3 - MVC COMPARISON
- 2:06:52 Review of MVC Features
- 2:08:21 Filtering & the Filter Pipeline
- 2:14:15 Custom Model Binding
- 2:20:39 Model Validation
- 2:24:21 Patch Endpoint
- 2:28:56 Wrap up and conclusions
- 2:31:16 Credits

PART 4 - WRAP & CREDITS
- 10:24 – ASP.NE CORE MVC API
- 2:24:31 – Supporter Credits
Рекомендации по теме
Комментарии
Автор

Absolutely marvelous. Just finished, thank you for the content all the way from Brazil.

viniciusaugusto
Автор

Awesome work as always, Most Underrated channel in whole Programming Community.

pratap
Автор

Hi Les, I have followed your course about the entity framework and it was awesome. And I have a future project with mini APi. Thanks for sharing your knowledge.

francksebbah
Автор

Hello LJackson. Tks a lot for the video!
I'm a new dev VS-C# guy 🧑🏻‍💻😄. I have 2 question about VS Minimal API:
1 - How usually do you run in production mode, the minimals api? as a windows service to run in brackground?
2 - Is it possible turn a VS minimal api as a Windows Service since a Visual Studio and use a Setup Windows Project to install this minimal api in the customers as a windows service?

gabrielmorenocaparrozsoare
Автор

Is it a coincidence that his name is also Les?😂

ofuochi
Автор

You have a wonderful way of explaining concepts. I have watched many, many other videos and none were nearly as clear as this one. Thank you so much!

alekseymamontov
Автор

Currently stuck on the migration process and am receiving this error: (0x80131904): Login failed for user 'pa55w0rd!'. Has anyone run into this issue/resolved the error?

stevekurtz
Автор

Hello LJackson. Tks a lot for the video!

I'm a new dev VS-C# guy 🧑🏻‍💻😄.

I have 2 question about VS Minimal API:

1 - How usually do you run in production mode, the minimals api? as a windows service to run in brackground?
2 - Is it possible turn a VS minimal api as a Windows Service since a Visual Studio and use a Setup Windows Project to install this minimal api in the customers as a windows service?

Many Thanks!

gabrielmorenocaparrozsoare
Автор

I feel in order to skip every single simple Controller I have to add a lot of extra codes/files in order to achieve the same thing. e.g. validating data.
What's the point of using Minimal API now? Am I missing something?

codeme
Автор

Got an error with the sql connection string. Adding "Encrypt=False;" solved it for me.

tommcmeekin
Автор

Hi Les loving your work, Which part of Scotland are you from I'm rom Fife

soldevhelp
Автор

good video, however regarding repository. I know that you can swap out your db context and whatever. But frankly how often has that ever happened.

EMWMIKE
Автор

Had a trust issue running the ef update command. Added "TrustServerCertificate=True" to the end of my connection string in the appsettings for a quick fix

MrStevenKPuckett
Автор

I swear the best in the business, God bless you !, from Germany <3

moafify
Автор

Amigo, no sabes cuanto agradezco tus videos, muy pero muy buenos!! Saludos desde chile

hernanfernandeztapia
Автор

And Kudos to this video! It is a really good help to understand minimal APIs.

randolphdomingo
Автор

Really impressive neat and clean work. Thank you for the content all the way from Pakistan.

kamransadiq
Автор

Uhhhh :( una semana antes que saliera está nueva versión me registre con mi credencial de estudiante para la licencia, puedo tener acceso a esta versión o ya valió? Jaja

wooseok
Автор

Just a tip for anyone stuck getting the db to work. I had to add SA_USERNAME: "sa" to the docker-compose file before it would let me log in with the sa account.

europauniversalis
Автор

Hi Les, I just purchasing a course on your site but getting issue on the payment related on both via Paypal and others.

pankajsaxena