Skip to content

Commit

Permalink
Feat: 안쓰는 API 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed May 23, 2024
1 parent 4999ab4 commit 8cfb512
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import project.backend.global.error.exception.BusinessException;
import project.backend.global.error.exception.ErrorCode;
import project.backend.global.s3.service.ImageService;
import springfox.documentation.annotations.ApiIgnore;

import javax.validation.Valid;
import java.util.List;
Expand All @@ -28,7 +29,7 @@
@RestController
@RequestMapping("/api/members")
@RequiredArgsConstructor
@Api(tags = "멤버 API")
@Api(tags = "B. 멤버 API")
public class MemberController {

private final MemberService memberService;
Expand Down Expand Up @@ -56,6 +57,7 @@ public ResponseEntity login(@Valid @RequestBody MemberLoginDto request) {
return new ResponseEntity<>(memberRetrieveDto, HttpStatus.OK);
}

@ApiIgnore
@GetMapping("/{memberId}") // todo : 관리자 권한 있어야 실행 가능한 것으로 바꾸기
public ResponseEntity getMember(
@RequestHeader(value = "Authorization", required = false) String accessToken,
Expand All @@ -64,6 +66,7 @@ public ResponseEntity getMember(
return ResponseEntity.status(HttpStatus.OK).body(memberResponseDto);
}

@ApiIgnore
@ApiOperation(
value = "통계 조회",
notes = " - Authorization 토큰 필수\n" +
Expand All @@ -80,6 +83,7 @@ public ResponseEntity getStatistics(
return ResponseEntity.status(HttpStatus.OK).body(memberStatisticsResponseDtoList);
}

@ApiIgnore
@ApiOperation(
value = "월별 통계 여부 조회",
notes = " - Authorization 토큰 필수")
Expand All @@ -94,6 +98,7 @@ public ResponseEntity getYearStatistics(
return ResponseEntity.status(HttpStatus.OK).body(memberStatisticsResponseDtoList);
}

@ApiIgnore
@ApiOperation(
value = "My Page - [닉네임, 프로필, 내 티켓, 통계 보기, 좋아요한 티켓 수]",
notes = " - Authorization 토큰 필수")
Expand All @@ -108,6 +113,7 @@ public ResponseEntity getMyPage(
return ResponseEntity.status(HttpStatus.OK).body(memberMyPageResponseDto);
}

@ApiIgnore
@ApiOperation(
value = "Member 조회 & 닉네임 조회(중복 검사)",
notes = "1. AccessToken으로 조회할 경우 : Header의 Authorization에 accessToken을 넣어주세요.\n" +
Expand Down Expand Up @@ -142,6 +148,7 @@ public ResponseEntity getMember(
return ResponseEntity.status(HttpStatus.OK).body(memberResponseDto);
}

@ApiIgnore
@GetMapping("/list")
public ResponseEntity getMemberList(
@RequestHeader(value = "Authorization", required = false) String accessToken) {
Expand All @@ -152,6 +159,7 @@ public ResponseEntity getMemberList(
return ResponseEntity.status(HttpStatus.OK).body(memberResponseDtoList);
}

@ApiIgnore
@ApiOperation(
value = "닉네임 & 프로필 이미지 등록, 온보딩 기능",
notes = " - 닉네임 변경 원할 시 : request -> {\"nickname\" : \"가방이\", \"marketingAgree\":\"AGREE\", \"pushAgree\":\"DISAGREE\"}\n" +
Expand Down Expand Up @@ -189,6 +197,7 @@ public ResponseEntity patchMember(
return ResponseEntity.status(HttpStatus.OK).body(memberResponseDto);
}

@ApiIgnore
@ApiOperation(value = "회원 탈퇴")
@DeleteMapping
public ResponseEntity deleteMember(
Expand All @@ -200,6 +209,7 @@ public ResponseEntity deleteMember(
return ResponseEntity.status(HttpStatus.NO_CONTENT).body(null);
}

@ApiIgnore
@ApiOperation(value = "로그아웃")
@GetMapping("/logout")
public ResponseEntity logoutMember(
Expand Down

0 comments on commit 8cfb512

Please sign in to comment.