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

@@ -8,7 +8,9 @@ public static class DeleteCar
{
return builder
.MapDelete("cars/{id:guid}", Endpoint)
.WithTags("Cars");
.WithTags("Cars")
.Produces(204)
.Produces(404);
}
public static async Task<IResult> Endpoint(