Skip to content

Commit

Permalink
docs: memberAPI 명세 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
parkmuhyeun committed May 11, 2024
1 parent f4d8201 commit 18cdc1f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main/java/kr/co/conceptbe/member/controller/doc/MemberApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -39,4 +44,23 @@ ResponseEntity<List<IdeaResponse>> findMemberBookmarks(
@RequestParam int page,
@RequestParam int size
);

@Operation(summary = "회원 프로필 수정")
ResponseEntity<Void> updateMemberProfile(
@RequestBody @Valid UpdateMemberProfileRequest updateMemberProfileRequest,
@Parameter(hidden = true) @Auth AuthCredentials authCredentials,
@PathVariable Long id
);

@Operation(summary = "회원 프로필 이미지 삭제")
ResponseEntity<Void> deleteMemberProfileImage(
@Auth AuthCredentials authCredentials,
@PathVariable Long id
);

@Operation(summary = "회원 탈퇴")
ResponseEntity<Void> deleteMember(
@Auth AuthCredentials authCredentials,
@PathVariable Long id
);
}

0 comments on commit 18cdc1f

Please sign in to comment.