Skip to content

Include AddEndpointsApiExplorer in ASP.NET Core Web API template By default #36696

Closed
@rafikiassumani-msft

Description

@rafikiassumani-msft

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.

image

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingfeature-openapiold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions