diff --git a/src/Vegasco.Server.Api/Cars/CreateCar.cs b/src/Vegasco.Server.Api/Cars/CreateCar.cs index 07fcc5e..ab453ed 100644 --- a/src/Vegasco.Server.Api/Cars/CreateCar.cs +++ b/src/Vegasco.Server.Api/Cars/CreateCar.cs @@ -17,6 +17,7 @@ public static class CreateCar return builder .MapPost("cars", Endpoint) .WithTags("Cars") + .WithDescription("Creates a new car") .Produces(201) .ProducesValidationProblem(); } diff --git a/src/Vegasco.Server.Api/Cars/DeleteCar.cs b/src/Vegasco.Server.Api/Cars/DeleteCar.cs index e3b2777..271b1a2 100644 --- a/src/Vegasco.Server.Api/Cars/DeleteCar.cs +++ b/src/Vegasco.Server.Api/Cars/DeleteCar.cs @@ -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); } diff --git a/src/Vegasco.Server.Api/Cars/UpdateCar.cs b/src/Vegasco.Server.Api/Cars/UpdateCar.cs index 0e890e6..9d13ed8 100644 --- a/src/Vegasco.Server.Api/Cars/UpdateCar.cs +++ b/src/Vegasco.Server.Api/Cars/UpdateCar.cs @@ -16,6 +16,7 @@ public static class UpdateCar return builder .MapPut("cars/{id:guid}", Endpoint) .WithTags("Cars") + .WithDescription("Updates a car by ID") .Produces() .ProducesValidationProblem() .Produces(404); diff --git a/src/Vegasco.Server.Api/Consumptions/CreateConsumption.cs b/src/Vegasco.Server.Api/Consumptions/CreateConsumption.cs index cb892a2..b33a610 100644 --- a/src/Vegasco.Server.Api/Consumptions/CreateConsumption.cs +++ b/src/Vegasco.Server.Api/Consumptions/CreateConsumption.cs @@ -17,6 +17,7 @@ public static class CreateConsumption return builder .MapPost("consumptions", Endpoint) .WithTags("Consumptions") + .WithDescription("Creates a new consumption entry") .Produces(201); } diff --git a/src/Vegasco.Server.Api/Consumptions/DeleteConsumptions.cs b/src/Vegasco.Server.Api/Consumptions/DeleteConsumptions.cs index 849ffd4..bedc45c 100644 --- a/src/Vegasco.Server.Api/Consumptions/DeleteConsumptions.cs +++ b/src/Vegasco.Server.Api/Consumptions/DeleteConsumptions.cs @@ -9,6 +9,7 @@ public static class DeleteConsumption return builder .MapDelete("consumptions/{id:guid}", Endpoint) .WithTags("Consumptions") + .WithDescription("Deletes a consumption entry by ID") .Produces(204) .Produces(404); } diff --git a/src/Vegasco.Server.Api/Consumptions/GetConsumption.cs b/src/Vegasco.Server.Api/Consumptions/GetConsumption.cs index 10b86a9..a8684dd 100644 --- a/src/Vegasco.Server.Api/Consumptions/GetConsumption.cs +++ b/src/Vegasco.Server.Api/Consumptions/GetConsumption.cs @@ -11,6 +11,7 @@ public static class GetConsumption return builder .MapGet("consumptions/{id:guid}", Endpoint) .WithTags("Consumptions") + .WithDescription("Returns a single consumption entry by ID") .Produces() .Produces(404); } diff --git a/src/Vegasco.Server.Api/Consumptions/UpdateConsumption.cs b/src/Vegasco.Server.Api/Consumptions/UpdateConsumption.cs index 974e065..cb07f24 100644 --- a/src/Vegasco.Server.Api/Consumptions/UpdateConsumption.cs +++ b/src/Vegasco.Server.Api/Consumptions/UpdateConsumption.cs @@ -16,6 +16,7 @@ public static class UpdateConsumption return builder .MapPut("consumptions/{id:guid}", Endpoint) .WithTags("Consumptions") + .WithDescription("Updates a consumption entry by ID") .Produces() .ProducesValidationProblem() .Produces(404);