← Back
Milan Jovanovic November 28, 2024 32s

Internal Controllers Not Visible in Swagger? Here's the fix

Summary

The main theme is enabling Swagger to detect internal controller types within a .NET application. The solution involves calling the `ConfigureApplicationPartManager` method during MVC service configuration and implementing a custom `IApplicationPartTypeProvider` to override the `IsController` method. The practical takeaway is that this configuration allows Swagger to correctly identify and document endpoints hosted by internal controllers.

View original episode ↗