Skip to content

Commit

Permalink
📝 API 응답 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyoBN committed Sep 13, 2023
1 parent 4cbf22d commit a6a5025
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ public ResponseDto<MemberResponseDto.MemberProfileDto> showMyProfile(@AuthMember
@Parameters({
@Parameter(name = "member", hidden = true),
})
@ApiResponses({
@ApiResponse(responseCode = "2000", description = "OK 성공 , 유저 선호 카테고리 조회 완료"),
})
@GetMapping("/members/category")
public ResponseDto<MemberResponseDto.MemberPreferCategoryDto> memberPreferCategories(@AuthMember Member member) {
List<Category> categories = memberService.findMemberPreferCategories(member);
Expand All @@ -193,6 +196,9 @@ public ResponseDto<MemberResponseDto.MemberPreferCategoryDto> memberPreferCatego
@Parameters({
@Parameter(name = "member", hidden = true),
})
@ApiResponses({
@ApiResponse(responseCode = "2000", description = "OK 성공 , 유저 선호 카테고리 수정 완료"),
})
@PatchMapping("/members/category")
public ResponseDto<MemberResponseDto.MemberStatusDto> updatePreferCategories(@AuthMember Member member, @RequestBody MemberRequestDto.changeCategoryDto request) {
List<String> categories = request.getCategories();
Expand Down

0 comments on commit a6a5025

Please sign in to comment.