Include AddEndpointsApiExplorer in ASP.NET Core Web API template By default #36696
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-minimal-actions
Controller-like actions for endpoint routing
feature-openapi
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
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 theAddEndpointsApiExplorer
Service (builder.Services.AddEndpointsApiExplorer();
) for Minimal endpoints to be added to the API explorer. It will be a better experience to addbuilder.Services.AddEndpointsApiExplorer();
by default to the template to enable users to explore Minimal APIs features (Open APIs) while still using MVC controllers.The text was updated successfully, but these errors were encountered: