Add descriptions for endpoints for use in openapi
This commit is contained in:
@@ -11,6 +11,7 @@ public static class GetConsumption
|
||||
return builder
|
||||
.MapGet("consumptions/{id:guid}", Endpoint)
|
||||
.WithTags("Consumptions")
|
||||
.WithDescription("Returns a single consumption entry by ID")
|
||||
.Produces<Response>()
|
||||
.Produces(404);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user