Skip to content

Commit

Permalink
[FIX] 토큰 필드명 통일 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Mar 12, 2024
1 parent 4427a56 commit 9441d14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions smeem-api/src/main/java/com/smeem/api/auth/api/AuthApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
public interface AuthApi {

@Operation(summary = "소셜 로그인 API")
@Parameter(name = "Authorization", description = "Social Platform Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Social Platform Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "201", description = "소셜로그인 성공"),
@ApiResponse(responseCode = "4xx", description = "유효하지 않은 요청"),
Expand All @@ -29,7 +29,7 @@ public interface AuthApi {
ResponseEntity<BaseResponse<?>> signIn(@RequestHeader("Authorization") final String socialAccessToken, @RequestBody SignInRequest request);

@Operation(summary = "토큰 재발급 API")
@Parameter(name = "Authorization", description = "Smeem Refresh Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Refresh Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "토큰 재발급 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand All @@ -39,7 +39,7 @@ public interface AuthApi {


@Operation(summary = "사용자 로그아웃 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "로그아웃 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand All @@ -49,7 +49,7 @@ public interface AuthApi {


@Operation(summary = "회원 탈퇴 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "회원 탈퇴 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public interface BadgeApi {

@Operation(summary = "뱃지 목록 조회 API")
@Parameter(name = "Authorization", description = "Bearer {access_token}", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "뱃지 리스트 조회 성공"),
@ApiResponse(responseCode = "4011", description = "유효하지 않은 토큰입니다"),
Expand Down
10 changes: 5 additions & 5 deletions smeem-api/src/main/java/com/smeem/api/member/api/MemberApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@Tag(name = "[Member] 사용자 관련 API (V2)")
public interface MemberApi {
@Operation(summary = "사용자 프로필 업데이트 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "회원 정보 조회 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand All @@ -33,7 +33,7 @@ public interface MemberApi {


@Operation(summary = "사용자 프로필 조회 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "회원 정보 조회 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand All @@ -42,7 +42,7 @@ public interface MemberApi {
ResponseEntity<BaseResponse<?>> getProfile(Principal principal);

@Operation(summary = "사용자 학습 계획 수정 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "회원 학습 계획 업데이트 성공"),
@ApiResponse(responseCode = "4xx", description = "유효하지 않은 요청"),
Expand All @@ -52,7 +52,7 @@ public interface MemberApi {
ResponseEntity<BaseResponse<?>> updateUserPlan(Principal principal, @Valid @RequestBody MemberPlanUpdateRequest request);

@Operation(summary = "사용자 닉네임 중복체크 수정 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "닉네임 중복 검사 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand All @@ -61,7 +61,7 @@ public interface MemberApi {
ResponseEntity<BaseResponse<?>> checkDuplicatedName(@Parameter(description = "유저 닉네임") @RequestParam String name);

@Operation(summary = "사용자 학습 계획 수정 API")
@Parameter(name = "Authorization", description = "Smeme Access Token", in = HEADER, required = true)
@Parameter(name = "Authorization", description = "Bearer ${Smeme Access Token}", in = HEADER, required = true)
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "회원 푸시알람 동의여부 업데이트 성공"),
@ApiResponse(responseCode = "401", description = "유효하지 않은 토큰입니다"),
Expand Down

0 comments on commit 9441d14

Please sign in to comment.