Add descriptions for endpoints for use in openapi
This commit is contained in:
@@ -17,6 +17,7 @@ public static class CreateConsumption
|
||||
return builder
|
||||
.MapPost("consumptions", Endpoint)
|
||||
.WithTags("Consumptions")
|
||||
.WithDescription("Creates a new consumption entry")
|
||||
.Produces<Response>(201);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user