Skip to content

Minimal api allows to describe response types #43708

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
uabarahona opened this issue Sep 2, 2022 · 2 comments
Closed

Minimal api allows to describe response types #43708

uabarahona opened this issue Sep 2, 2022 · 2 comments
Labels
old-area-web-frameworks-do-not-use *DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels

Comments

@uabarahona
Copy link
Contributor

uabarahona commented Sep 2, 2022

Description

Right now, it is possible to add description to response types by using WithOpenApi:

.WithOpenApi(options =>
{
    options.Responses["400"].Description = "Describe what would cause this.";
    return options;
});

though I think a more concise way of doing it seems to be missing here, like on MVC:
image

✏️ Minimal APIs are looking awesome!!

@javiercn javiercn 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 2, 2022
@BrennanConroy
Copy link
Member

Possible dupe of #39927

@rafikiassumani-msft
Copy link
Contributor

Triage: Closing as a dupe.

@ghost ghost locked as resolved and limited conversation to collaborators Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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

4 participants