Skip to content

Planning for Minimal APIs in .NET 7 #36770

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 Sep 20, 2021 · 6 comments
Closed

Planning for Minimal APIs in .NET 7 #36770

DamianEdwards opened this issue Sep 20, 2021 · 6 comments
Labels
area-minimal Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc feature-minimal-actions Controller-like actions for endpoint routing feature-minimal-hosting old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Comments

@DamianEdwards
Copy link
Member

Super early list of potential areas to investigate in .NET 7:

  • More OpenAPI
    • describe schemas, either from binders or metadata
    • query/header/path params
    • more automatic descriptions (less need to use manual metadata)
    • easier authn/z configuration with Swagger UI light-up
  • More inferred parameter binding
    • Form & File binding
    • etc.
  • Extensible parameter binding
  • Extensible Result processing, e.g. delayed execution, shortcutting
  • Validation
  • Hot Reload, e.g. top-level statements, modifying route mappings, DI, etc.
  • Composition, e.g.
    • Route grouping
    • Route handler filters
  • 3rd-party extensibility
    • nSwag
    • OData
    • Microsoft....ApiVersioning
  • Developer experience
    • Route debugging tool/features
    • Analyzers
    • API versioning
  • Trimming and AoT
  • Performance
  • Problem Details everything
    • DeveloperExceptionPage
    • Middleware/ExceptionHandler
    • Something else?
  • Anti-forgery support (XSRF), e.g. via a middleware
  • Teach MVC to do more stuff like Minimal APIs, e.g. auto service resolution
  • Expanding the minimalistic philosophy to other areas of ASP.NET Core
    • CORS
    • Authn/z
    • gRPC, SignalR, Orleans
  • Razor support (e.g. Results.Page())
@DamianEdwards DamianEdwards added Bottom Up Work feature-minimal-actions Controller-like actions for endpoint routing labels Sep 20, 2021
@DamianEdwards DamianEdwards added this to the .NET 7 Planning milestone Sep 20, 2021
@shaggygi
Copy link
Contributor

Bedrock? Just curious.

@Pilchie Pilchie added the old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels label Sep 21, 2021
@loic-sharma
Copy link
Contributor

Expanding the minimalistic philosophy to other areas of ASP.NET Core

Would introducing minimal APIs for generic hosts and worker services make sense?

@gulshan
Copy link

gulshan commented Oct 17, 2021

Please keep asp.net core 7 runnable on .net 6 LTS runtime.

@davidfowl
Copy link
Member

They ship together so that won't happen

@ghost
Copy link

ghost commented Oct 11, 2022

Thanks for contacting us.

We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@DamianEdwards
Copy link
Member Author

Closing this issue as many of these are done or tracked by other issues now.

@DamianEdwards DamianEdwards closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2023
@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-minimal-hosting 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

No branches or pull requests

8 participants