From 2f4231b5c85039c4fd1c37f5dad693d4d3f250f6 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 4 Nov 2024 10:06:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20Ap?= =?UTF-8?q?iResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sadtech/example/swagger/controller/PointController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/sadtech/example/swagger/controller/PointController.java b/src/main/java/org/sadtech/example/swagger/controller/PointController.java index 734b1d1..836dedf 100644 --- a/src/main/java/org/sadtech/example/swagger/controller/PointController.java +++ b/src/main/java/org/sadtech/example/swagger/controller/PointController.java @@ -3,6 +3,7 @@ package org.sadtech.example.swagger.controller; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.enums.ParameterIn; +import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotBlank; @@ -36,6 +37,7 @@ public class PointController { } @PostMapping("{key}") + @ApiResponse(responseCode = "400", description = "Неверный запрос — количество баллов должно быть неотрицательным") @Operation(summary = "Управление баллами", description = "Позволяет удалить или добавить баллы пользователю") public HttpStatus changePoints( @PathVariable @NotBlank @Parameter(description = "Идентификатор пользователя") String key,