Skip to content

Commit

Permalink
[Feat/#268] add errorstatus in swagger error code example of controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Han-Jeong committed May 27, 2024
1 parent 381e27c commit 1c498f0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ public ApiResponseDto<Boolean> deleteQuestion(@PathVariable("questionId") Long q

@Operation(summary = "질문 강제 삭제 🔑", description = "특정 질문이 관리자에 의해 삭제됩니다. 게시글과 관련된 댓글, 대댓글, 미디어 등 모두 삭제됩니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{questionId}/admin")
public ApiResponseDto<Boolean> deleteQuestionByAdmin(@PathVariable("questionId") Long questionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public ApiResponseDto<Boolean> deleteSiren(@PathVariable("sirenId") Long sirenId

@Operation(summary = "사이렌 강제 삭제 🔑", description = "특정 사이렌이 관리자에 의해 삭제됩니다. 게시글과 관련된 댓글, 대댓글, 미디어 등을 모두 삭제합니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{sirenId}/admin")
public ApiResponseDto<Boolean> deleteSirenByAdmin(@PathVariable("sirenId") Long sirenId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public ApiResponseDto<Boolean> deleteStory(@PathVariable("storyId") Long storyId

@Operation(summary = "스토리 강제 삭제 🔑", description = "특정 스토리가 관리자에 의해 삭제됩니다. 게시글과 관련된 댓글, 대댓글, 미디어 등을 모두 삭제합니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{storyId}/admin")
public ApiResponseDto<Boolean> deleteStoryByAdmin(@PathVariable("storyId") Long storyId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public ApiResponseDto<Boolean> deleteComment(@PathVariable("commentId") Long com

@Operation(summary = "댓글 강제 삭제 🔑", description = "특정 댓글이 관리자에 의해 삭제됩니다. 하위 대댓글들도 모두 삭제됩니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{commentId}/admin")
public ApiResponseDto<Boolean> deleteCommentByAdmin(@PathVariable("commentId") Long commentId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public ApiResponseDto<Boolean> deleteReply(@PathVariable("replyId") Long replyId

@Operation(summary = "대댓글 강제 삭제 🔑", description = "특정 대댓글이 관리자에 의해 삭제됩니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{replyId}/admin")
public ApiResponseDto<Boolean> deleteReplyByAdmin(@PathVariable("replyId") Long replyId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ public ApiResponseDto<Long> updatePassword(@AuthUser Member member,

@Operation(summary = "회원 강제 삭제 🔑", description = "특정 회원을 관리자가 강제 삭제합니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{memberId}/admin")
public ApiResponseDto<Boolean> deleteMemberForce(@PathVariable Long memberId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public ApiResponseDto<Boolean> deletePet(@PathVariable("petId") Long petId,

@Operation(summary = "반려견 강제 삭제 🔑", description = "회원의 특정 반려견의 정보가 관리자에 의해 삭제됩니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{petId}/admin")
public ApiResponseDto<Boolean> deletePetByAdmin(@PathVariable("petId") Long petId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public ApiResponseDto<Boolean> deleteScheduleInTeam(@PathVariable("scheduleId")

@Operation(summary = "일정 강제 삭제 🔑", description = "특정 일정이 관리자에 의해 삭제됩니.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{scheduleId}/admin")
public ApiResponseDto<Boolean> deleteScheduleByAdmin(@PathVariable("scheduleId") Long scheduleId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public ApiResponseDto<Boolean> deleteTeam(@PathVariable("teamId") Long teamId,

@Operation(summary = "팀 강제 삭제 🔑", description = "팀이 관리자에 의해 삭제됩니다.")
@ApiErrorCodeExample({
ErrorStatus._INTERNAL_SERVER_ERROR
ErrorStatus._INTERNAL_SERVER_ERROR,
ErrorStatus.MEMBER_ACCESS_DENIED_BY_AUTHORIZATION
})
@DeleteMapping("/{teamId}/admin")
public ApiResponseDto<Boolean> deleteTeamByAdmin(@PathVariable("teamId") Long teamId,
Expand Down

0 comments on commit 1c498f0

Please sign in to comment.