Skip to content
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

Add overloads to WithTags and others targeting IEndpointConventionBuilder #41830

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

halter73
Copy link
Member

@halter73 halter73 commented May 25, 2022

var todoGroup = app.MapGroup("/todos");
todoGroup.WithTags("todos");
todoGroup.WithSummary("An endpoint for managing todos.");

todoGroup.MapGet("/", (TodoDb db) => TypedResults.Ok(await db.Todos.ToArrayAsync()));
todoGroup.MapPost("/todos", (Todo todo, TodoDb db) =>
{
    // ....

Fixes #41428

@halter73 halter73 requested review from captainsafia and May 25, 2022
@msftbot msftbot bot added the area-runtime label May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant