From ab738e7f971e105a7c1973b4e9f1de160ba4e660 Mon Sep 17 00:00:00 2001 From: kimyu0218 Date: Wed, 31 Jul 2024 02:16:55 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20swagger=20=EB=AC=B8=EC=84=9C=20?= =?UTF-8?q?=EB=B3=B4=EC=99=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mission/MissionVerificationController.java | 8 ++++---- .../MissionVerificationControllerDocs.java | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationController.java b/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationController.java index 83f67ca4..ae70cd67 100644 --- a/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationController.java +++ b/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationController.java @@ -23,7 +23,7 @@ public class MissionVerificationController implements MissionVerificationControl @GetMapping public ResponseEntity> getTodayVerification( @LoginMemberId final Long memberId, - @PathVariable final Long missionId + @PathVariable(name = "missionId") final Long missionId ) { List response = missionVerificationService.getTodayVerification(new MissionVerificationCommand(memberId, missionId)); @@ -33,8 +33,8 @@ public ResponseEntity> getTodayVerification( @GetMapping("/me/{number}") public ResponseEntity getMyVerification( @LoginMemberId final Long memberId, - @PathVariable final Long missionId, - @PathVariable final Integer number) { + @PathVariable(name = "missionId") final Long missionId, + @PathVariable(name = "number") final Integer number) { MissionVerificationResponse response = missionVerificationService.getMyVerification( new MyMissionVerificationCommand(memberId, missionId, number)); @@ -44,7 +44,7 @@ public ResponseEntity getMyVerification( @PostMapping("/me") public ResponseEntity createVerification( @LoginMemberId final Long memberId, - @PathVariable final Long missionId, + @PathVariable(name = "missionId") final Long missionId, @RequestBody @Valid final CreateMissionVerificationRequest request) { missionVerificationService.createVerification(request.toServiceDto(memberId, missionId)); diff --git a/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationControllerDocs.java b/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationControllerDocs.java index c44bc596..423815d2 100644 --- a/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationControllerDocs.java +++ b/src/main/java/com/nexters/goalpanzi/presentation/mission/MissionVerificationControllerDocs.java @@ -34,8 +34,8 @@ public interface MissionVerificationControllerDocs { @GetMapping ResponseEntity> getTodayVerification( @Parameter(hidden = true) @LoginMemberId final Long memberId, - @Schema(description = "미션 아이디", type = "integer", requiredMode = Schema.RequiredMode.REQUIRED) - @PathVariable final Long missionId + @Schema(description = "미션 아이디", type = "integer", format = "int64", requiredMode = Schema.RequiredMode.REQUIRED) + @PathVariable(name = "missionId") final Long missionId ); @Operation(summary = "나의 미션 인증 현황 조회", description = "보드판에 해당하는 미션 인증 현황을 조회합니다.") @@ -47,10 +47,10 @@ ResponseEntity> getTodayVerification( @GetMapping("/me/{number}") ResponseEntity getMyVerification( @Parameter(hidden = true) @LoginMemberId final Long memberId, - @Schema(description = "미션 아이디", type = "integer", requiredMode = Schema.RequiredMode.REQUIRED) - @PathVariable final Long missionId, - @Schema(description = "보드판 번호", type = "integer", requiredMode = Schema.RequiredMode.REQUIRED) - @PathVariable final Integer number); + @Schema(description = "미션 아이디", type = "integer", format = "int64", requiredMode = Schema.RequiredMode.REQUIRED) + @PathVariable(name = "missionId") final Long missionId, + @Schema(description = "보드판 번호", type = "integer", format = "int32", requiredMode = Schema.RequiredMode.REQUIRED) + @PathVariable(name = "number") final Integer number); @Operation(summary = "미션 인증", description = "미션 인증을 위해 이미지를 업로드합니다.") @ApiResponses({ @@ -62,7 +62,7 @@ ResponseEntity getMyVerification( @PostMapping("/me") ResponseEntity createVerification( @Parameter(hidden = true) @LoginMemberId final Long memberId, - @Schema(description = "미션 아이디", type = "integer") - @PathVariable final Long missionId, + @Schema(description = "미션 아이디", type = "integer", format = "int64", requiredMode = Schema.RequiredMode.REQUIRED) + @PathVariable(name = "missionId") final Long missionId, @RequestBody @Valid final CreateMissionVerificationRequest request); -} +} \ No newline at end of file