Skip to content

Allow parameter and return types of route handler delegates (API Controllers) to contribute to endpoint metadata #41421

@brunolins16

Description

@brunolins16

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Introduce the capability for types used for parameters and return values for API controller actions to contribute to metadata of the endpoint they're mapped to. This will allow types that implement custom binding logic via TryParse and IResult types, to add metadata that describes the API parameters and responses in Swagger UI and OpenAPI documents.

This is an idea of feature parity with Minimal API, after #40646.

Describe the solution you'd like

We should introduce the same support for the new interfaces, IEndpointParameterMetadataProvider and IEndpointMetadataProvider that currently is implemented in Minimal Actions.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions