dotnet / dotnet/aspnetcore

Universal way to get metadata about endpoint parameters.

Open
#42,184 11 comments 0 reactions 0 assignees View on GitHub
area-minimal
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

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

I am not sure whether this [issue](https://github.com/dotnet/aspnetcore/issues/41421) is about the same problem I have.

See also [my question](https://stackoverflow.com/questions/72618163/what-is-the-most-universal-way-to-get-metadata-about-defined-endpoint-parameters) on Stack Overflow.

I need a universal way to get metadata about endpoint parameters. It's not too difficult for controller actions but not that simple for the endpoints with delegate implementations.

### Describe the solution you'd like

Well, I expect that Endpoint's metadata contains `Parameters` property like `ControllerActionDescription` does.

### Additional context

See also [my question](https://stackoverflow.com/questions/72618163/what-is-the-most-universal-way-to-get-metadata-about-defined-endpoint-parameters) on Stack Overflow.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.