Closed
Description
Is your feature request related to a problem? Please describe.
When you create a Web API project using the ASP.NET Core Web API template and check both use Controllers and Enable Open API support
as shown in the image below, the Minimal API endpoints do not get automatically added to the API explorer as it is for controller endpoints. The user needs to manually inject the AddEndpointsApiExplorer
Service ( builder.Services.AddEndpointsApiExplorer();
) for Minimal endpoints to be added to the API explorer. It will be a better experience to add builder.Services.AddEndpointsApiExplorer();
by default to the template to enable users to explore Minimal APIs features (Open APIs) while still using MVC controllers.