Coding Shorts: Another Attempt to Scale Up Minimal APIs

Опубликовано: 16 Октябрь 2024
на канале: Shawn Wildermuth
1,996
119

My new live, online courses are coming in April and May:

ASP.NET Core: Building Sites and APIs
April 11-13th, 2023
https://shawnl.ink/aspnetcore-live

Building Apps with Vue, Vite and TypeScript
May 9-11th, 2023
https://shawnl.ink/vue-live

--------------------------------------------------------

While talking to a client, I realized that I might be able to just take my attempts at finding all Minimal APIs and registering them with a little bit of glue code. The result is the WilderMinds.MinimalApiDiscovery Nuget Package. Let's look at what I did.

00:00 - Introduction
01:04 - The Existing Code
02:06 - Building API Classes
03:47 - Using the MinimalApiDiscovery Package
07:03 - Using Groups in .NET 7
10:08 - Avoid Using Constructor Injection
10:31 - Using methods instead of Lambdas
12:29 - Wrapping Up

Source code: https://github.com/shawnwildermuth/co...

If you like this video, you might like other videos in my Instructional Videos:
   • Instructional Videos  

You can hire me too! You can reach me at my new website:
https://shawn.wildermuth.com