Implement a minimal version of MapAction #29684
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Done
This issue has been fixed
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-minimal-actions
Controller-like actions for endpoint routing
Milestone
This issue tracks what should be included in the first PR that adds a
MapAction
extension method toIEndpointRouteBuilder
.Requirements:
[FromBody]
,[FromRoute]
,[FromQuery]
,[FromHeaders]
,[FromService]
parameters.[FromBody]
will be JSON-only for the first iteration[FromQuery]
will likely not support complex types due to MVC-isms[Route]
attribute instead of an explicit parameter.Follow up:
Is your feature request related to a problem? Please describe.
I want to be able to use MVC features like parameter binding without having to write a Controller.
Describe the solution you'd like
A
MapAction
extension method forIEndpointRouteBuilder
that accepts controller action-like delegates.The text was updated successfully, but these errors were encountered: