From 18cdc1f8974de469673e1fe86862c416daa071bd Mon Sep 17 00:00:00 2001 From: parkmuhyeun Date: Sat, 11 May 2024 16:43:08 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20memberAPI=20=EB=AA=85=EC=84=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../member/controller/doc/MemberApi.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/kr/co/conceptbe/member/controller/doc/MemberApi.java b/src/main/java/kr/co/conceptbe/member/controller/doc/MemberApi.java index 938ee7c..44adb0a 100644 --- a/src/main/java/kr/co/conceptbe/member/controller/doc/MemberApi.java +++ b/src/main/java/kr/co/conceptbe/member/controller/doc/MemberApi.java @@ -3,14 +3,19 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.validation.Valid; import java.util.List; import kr.co.conceptbe.auth.presentation.dto.AuthCredentials; import kr.co.conceptbe.common.auth.Auth; import kr.co.conceptbe.idea.application.response.IdeaResponse; import kr.co.conceptbe.member.application.dto.GetMemberProfileResponse; import kr.co.conceptbe.member.application.dto.MemberIdeaResponse; +import kr.co.conceptbe.member.application.dto.UpdateMemberProfileRequest; import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; @Tag(name = "Member", description = "회원 API") @@ -39,4 +44,23 @@ ResponseEntity> findMemberBookmarks( @RequestParam int page, @RequestParam int size ); + + @Operation(summary = "회원 프로필 수정") + ResponseEntity updateMemberProfile( + @RequestBody @Valid UpdateMemberProfileRequest updateMemberProfileRequest, + @Parameter(hidden = true) @Auth AuthCredentials authCredentials, + @PathVariable Long id + ); + + @Operation(summary = "회원 프로필 이미지 삭제") + ResponseEntity deleteMemberProfileImage( + @Auth AuthCredentials authCredentials, + @PathVariable Long id + ); + + @Operation(summary = "회원 탈퇴") + ResponseEntity deleteMember( + @Auth AuthCredentials authCredentials, + @PathVariable Long id + ); }