Blog Logo
TAGS

A Minimal API Discovery Tool for Large APIs

Shawn Wildermuth talks about his experimental nuget package called WilderMinds.MinimalApiDiscovery, which helps to discover Minimal APIs instead of mapping them all in Program.cs, and explains how it works. The package can be installed via the dotnet tool and uses an interface called IApi to implement classes that can register Minimal APIs. Shawn also shows how you can implement classes that get passed the WebApplication object to map your API calls, and suggests using static methods due to some features missing in lambdas. This package is useful for large APIs with numerous related API calls and can be used in .NET 7 and later. Watch Shawns Coding Short video for a quick overview of the topic.