Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rafikiassumani-msft opened this issue Sep 18, 2021 · 0 comments · Fixed by #36752
Closed
Assignees
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

Comments

@rafikiassumani-msft
Copy link
Contributor

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

@rafikiassumani-msft rafikiassumani-msft added feature-openapi feature-minimal-actions Controller-like actions for endpoint routing old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels labels Sep 18, 2021
@DamianEdwards DamianEdwards added this to the 6.0-rc2 milestone Sep 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
@amcasey amcasey added the area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc label Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants