Skip to content

Commit

Permalink
⚡️: fix swagger에 특정 api만 안뜨는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
sookyungg committed Mar 14, 2024
1 parent ae446d3 commit ff309ae
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ import org.springframework.web.bind.annotation.*

@Tag(name = "Member")
@RestController
@RequestMapping("/api")
class MemberController(
private val memberService: MemberService,
) {
@Operation(summary = "닉네임 중복 체크")
@PostMapping("/api/v1/member/nickname/dupl")
@PostMapping("/v1/member/nickname/dupl")
fun checkNicknameDuplication(@RequestBody request: CheckNicknameRequestDto): ApiResponse<CheckNicknameResponse> {
val response = memberService.checkNicknameDuplication(request)
return ApiResponse.success(response)
}

@Auth
@Operation(summary = "[인증] 닉네임 수정")
@PutMapping("/api/v1/member/{memberId}/nickname")
@PutMapping("/v1/member/{memberId}/nickname")
fun updateNickname(
@PathVariable memberId: Long,
@RequestBody request: UpdateNicknameRequestDto
Expand All @@ -37,15 +38,15 @@ class MemberController(

@Auth
@Operation(summary = "[인증] 회원 탈퇴")
@DeleteMapping("/api/v1/member")
@DeleteMapping("/v1/member")
fun deleteMember(@MemberId memberId: Long): ApiResponse<Any> {
memberService.deleteMember(memberId)
return ApiResponse.success()
}

@Auth
@Operation(summary = "[인증] 마이페이지 조회")
@GetMapping("/api/v1/mypage")
@GetMapping("/v1/mypage")
fun getMyPageInfo(@MemberId memberId: Long): ApiResponse<MyPageResponseDto> {
val myPageInfo = memberService.getMyPageInfo(memberId)
return ApiResponse.success(data = myPageInfo)
Expand Down

0 comments on commit ff309ae

Please sign in to comment.