diff --git a/Server/src/main/java/JGS/CasperEvent/domain/url/controller/UrlController.java b/Server/src/main/java/JGS/CasperEvent/domain/url/controller/UrlController.java index 35157526..7c206cc5 100644 --- a/Server/src/main/java/JGS/CasperEvent/domain/url/controller/UrlController.java +++ b/Server/src/main/java/JGS/CasperEvent/domain/url/controller/UrlController.java @@ -30,10 +30,7 @@ public UrlController(UrlService urlService) { } @Operation(summary = "공유 링크 생성", description = "사용자가 공유할 URL을 단축 링크로 생성합니다.") - @ApiResponses(value = { - @ApiResponse(responseCode = "201", description = "공유 링크 생성 성공"), - @ApiResponse(responseCode = "400", description = "잘못된 요청 데이터") - }) + @ApiResponse(responseCode = "201", description = "Short URL creation successful") @PostMapping public ResponseEntity generateShortUrl(HttpServletRequest request) throws NoSuchPaddingException, IllegalBlockSizeException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException { @@ -44,10 +41,7 @@ public ResponseEntity generateShortUrl(HttpServletRequest } @Operation(summary = "공유 링크 접속", description = "단축 링크를 통해 원본 URL로 리다이렉트합니다.") - @ApiResponses(value = { - @ApiResponse(responseCode = "302", description = "리다이렉트 성공"), - @ApiResponse(responseCode = "404", description = "짧은 링크가 존재하지 않음") - }) + @ApiResponse(responseCode = "302", description = "Redirect successful") @GetMapping("/{encodedId}") public ResponseEntity redirectOriginalUrl(@PathVariable String encodedId) { String originalUrl = urlService.getOriginalUrl(encodedId);