Skip to content

Commit dabe221

Browse files
committed
..
1 parent 7f3d1cc commit dabe221

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Features/Posts/GetPosts.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ public record Request(string Title, string? Content);
88
public record PostList(int Id);
99

1010
public static void Map(IEndpointRouteBuilder app) => app
11-
.MapGet("/", Handle)
12-
.WithSummary("Gets all posts");
11+
.MapGet("/", Handle)
12+
.WithSummary("Gets all posts")
13+
.WithDescription("Retrieves all posts optionally filtered by title and content.")
14+
.WithName("GetPosts")
15+
.WithTags("Post");
1316

1417
private static PostList Handle([AsParameters] Request request, CancellationToken cancellationToken)
1518
{

0 commit comments

Comments
 (0)