Add descriptions for endpoints for use in openapi

This commit is contained in:
2025-06-16 20:34:09 +02:00
parent bcbf76fda6
commit 85052df8a5
7 changed files with 7 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ public static class DeleteCar
return builder
.MapDelete("cars/{id:guid}", Endpoint)
.WithTags("Cars")
.WithDescription("Deletes a car by ID")
.Produces(204)
.Produces(404);
}