Skip to content

Commit 9ef1eaa

Browse files
committed
Show descriptions
1 parent 703bd84 commit 9ef1eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

App/Api/Setup/ApiEndpoints.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ public static void ConfigureEndpoints(this WebApplication app)
8787
});
8888
}
8989

90-
private static void ConfigureEndpoint(RouteGroupBuilder group, string route, string summary, Delegate handler)
90+
private static void ConfigureEndpoint(RouteGroupBuilder group, string route, string description, Delegate handler)
9191
{
9292
group.MapGet(route, handler)
93+
.WithDescription(description)
9394
.WithOpenApi(operation =>
9495
{
95-
operation.Summary = summary;
9696
operation.Parameters[0].Example = ExampleFromDate;
9797
operation.Parameters[^1].Example = ExampleToDate;
9898
return operation;

0 commit comments

Comments
 (0)