-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Is your feature request related to a problem? Please describe.
Hi, I am using the new minimal hosting model with dotnet 6 and I set up my endpoints like this:
endpoints.MapPost("user/createWithList", ExecutionDelegate).WithTags("user");Is there a way to set the summary of the route, so right next to the route -> underlined with red?
Is there a way to set the extended description of the route, so below the http method, in this case POST, and above the parameters section -> marked by the red arrow?
I already checked and there seem to only be the WithTags method or the AddMetaData where you could add EndpointNameMetadata
I think this feature is essential for providing a well structured and helpful api documentation.
Describe the solution you'd like
I would like to have the option to add the description either by having a dedicated method for that, so:
endpoints.MapPost("user/createWithList", ExecutionDelegate).WithTags("user").WithDescription("This endpoints lets you create users for ...");or to have attributes like the EndpointNameMetadata f.e. EndpointDescriptionMetadata which can be used to set the OpenApi description of that route and be passed to the WithMetadata() method
