Add descriptions for endpoints for use in openapi
This commit is contained in:
@@ -16,6 +16,7 @@ public static class UpdateCar
|
||||
return builder
|
||||
.MapPut("cars/{id:guid}", Endpoint)
|
||||
.WithTags("Cars")
|
||||
.WithDescription("Updates a car by ID")
|
||||
.Produces<Response>()
|
||||
.ProducesValidationProblem()
|
||||
.Produces(404);
|
||||
|
||||
Reference in New Issue
Block a user