Specify API returns types for swagger

This commit is contained in:
2025-06-16 20:28:37 +02:00
parent b989c43ec3
commit bcbf76fda6
10 changed files with 35 additions and 14 deletions

View File

@@ -10,7 +10,9 @@ public static class GetConsumption
{
return builder
.MapGet("consumptions/{id:guid}", Endpoint)
.WithTags("Consumptions");
.WithTags("Consumptions")
.Produces<Response>()
.Produces(404);
}
private static async Task<IResult> Endpoint(