Skip to content

Add an option to the Web API project template to allow the included content to use Minimal APIs instead of controllers #35996

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
DamianEdwards opened this issue Aug 31, 2021 · 2 comments · Fixed by #36241
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-templates old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone

Comments

@DamianEdwards
Copy link
Member

dotnet new webapi --minimal would produce a project that is functionally similar to the existing project the template creates (i.e. the weather API) but implemented with the new MinimalAPIs.

The option should be displayed in the Visual Studio new project dialog experience so that it's easily discoverable when creating projects there.

@DamianEdwards DamianEdwards added feature-templates 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 Aug 31, 2021
@DamianEdwards DamianEdwards self-assigned this Aug 31, 2021
@rafikiassumani-msft rafikiassumani-msft added this to the 6.0-rc2 milestone Sep 1, 2021
@rafikiassumani-msft
Copy link
Contributor

@DamianEdwards and @LadyNaggaga will this work replace the need for this NuGet package ? #34010

@DamianEdwards
Copy link
Member Author

If we end up going with this approach, I'd think yes.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 7, 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-templates 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