Combining source-generated Minimal API registration with constructor injection
Source generation can register injectable Minimal API endpoint classes and map their routes without runtime scanning or manual composition.
Software architect working with .NET, AWS, Azure, APIs, and cloud infrastructure. I write about practical problems from real implementation work. You can read more about me in the About me section.
Explore the blog
Source generation can register injectable Minimal API endpoint classes and map their routes without runtime scanning or manual composition.
Source generation can remove repetitive service-module registration from ASP.NET Core applications without relying on runtime reflection.
Most ASP.NET Core projects generate OpenAPI from code. This post explores the opposite approach: treating the spec as the source of truth for Minimal APIs.
Manual registration of Minimal API endpoints can clutter your ASP.NET Core apps. This article explores how to automate it for a cleaner setup.
