Skip to content

Commit

Permalink
chore: 컨벤션에 따라 반환값 영어로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
k000927 committed Aug 20, 2024
1 parent 1628207 commit 77446f5
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ShortenUrlResponseDto> generateShortUrl(HttpServletRequest request)
throws NoSuchPaddingException, IllegalBlockSizeException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException {
Expand All @@ -44,10 +41,7 @@ public ResponseEntity<ShortenUrlResponseDto> 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<Void> redirectOriginalUrl(@PathVariable String encodedId) {
String originalUrl = urlService.getOriginalUrl(encodedId);
Expand Down

0 comments on commit 77446f5

Please sign in to comment.