Skip to content

Commit

Permalink
#325 refactor: cart 스웨거 실패 응답 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sojungpp committed Jul 7, 2024
1 parent 59526f1 commit bef5386
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public class CartController {
@ApiResponses(value = {
@ApiResponse(responseCode = "403", description = "냉장고의 멤버가 아닙니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
@ApiResponse(responseCode = "404", description = "요청한 id를 가진 유저를 찾을 수 없습니다.\t\n" +
@ApiResponse(responseCode = "404", description = "(U0005)해당 유저를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 냉장고를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 장바구니를 찾을 수 없습니다.",
"(C0000)장바구니를 찾을 수 없습니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
})
@Auth
Expand All @@ -53,10 +53,10 @@ public ResponseCustom<List<CartResponse>> getCartFoods(@Parameter(name = "냉장
@ApiResponses(value = {
@ApiResponse(responseCode = "403", description = "냉장고의 멤버가 아닙니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
@ApiResponse(responseCode = "404", description = "요청한 id를 가진 유저를 찾을 수 없습니다.\t\n" +
@ApiResponse(responseCode = "404", description = "(U0005)해당 유저를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 냉장고를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 장바구니를 찾을 수 없습니다.\t\n" +
"존재하지 않는 카테고리입니다.",
"(C0000)장바구니를 찾을 수 없습니다.\t\n" +
"(F0000)존재하지 않는 카테고리입니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
})
@Auth
Expand All @@ -73,10 +73,10 @@ public ResponseCustom<?> addCartFoods(@Parameter(name = "냉장고 ID") @PathVar
@ApiResponses(value = {
@ApiResponse(responseCode = "403", description = "냉장고의 멤버가 아닙니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
@ApiResponse(responseCode = "404", description = "요청한 id를 가진 유저를 찾을 수 없습니다.\t\n" +
@ApiResponse(responseCode = "404", description = "(U0005)해당 유저를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 냉장고를 찾을 수 없습니다.\t\n" +
"요청한 id를 가진 장바구니를 찾을 수 없습니다.\t\n" +
"존재하지 않는 카테고리입니다.",
"(C0000)장바구니를 찾을 수 없습니다.\t\n" +
"(F0000)존재하지 않는 카테고리입니다.",
content = @Content(schema = @Schema(implementation = ResponseCustom.class))),
})
@Auth
Expand Down

0 comments on commit bef5386

Please sign in to comment.