diff --git a/src/main/java/shop/cazait/domain/cafe/api/CafeController.java b/src/main/java/shop/cazait/domain/cafe/api/CafeController.java index 0568f883..abfa1a4a 100644 --- a/src/main/java/shop/cazait/domain/cafe/api/CafeController.java +++ b/src/main/java/shop/cazait/domain/cafe/api/CafeController.java @@ -30,12 +30,12 @@ public class CafeController { private final CafeService cafeService; - @PostMapping("/add/master/{masterId}") + @PostMapping(name = "/add/master/{masterId}", consumes = {"multipart/form-data"}) @ApiOperation(value = "카페 등록", notes = "master가 카페를 등록한다.") @ApiImplicitParam(name = "masterId", value = "마스터 ID") public SuccessResponse addCafe(@PathVariable Long masterId, - @RequestPart(value = "PostCafeReq") @Valid PostCafeReq postCafeReq, - @RequestPart(value = "images", required = false) List imageFiles) throws JsonProcessingException { + @RequestPart @Valid PostCafeReq postCafeReq, + @RequestPart(required = false) List imageFiles) throws JsonProcessingException { cafeService.addCafe(masterId, postCafeReq, imageFiles); return new SuccessResponse<>("카페 등록 완료"); }