diff --git a/src/main/java/com/tukorea/planding/domain/schedule/controller/GroupScheduleController.java b/src/main/java/com/tukorea/planding/domain/schedule/controller/GroupScheduleController.java index 2867fd4..fd7ad22 100644 --- a/src/main/java/com/tukorea/planding/domain/schedule/controller/GroupScheduleController.java +++ b/src/main/java/com/tukorea/planding/domain/schedule/controller/GroupScheduleController.java @@ -36,28 +36,28 @@ public CommonResponse createGroupSchedule(@DestinationVariable @Operation(summary = "그룹 스케줄: 작성 목록 조회") - @GetMapping("/api/v1/groupRoom/{groupRoomId}") + @GetMapping("/api/v1/group-rooms/{groupRoomId}") public CommonResponse> getSchedulesByGroupRoom(@PathVariable Long groupRoomId, @AuthenticationPrincipal UserInfo userInfo) { List scheduleResponses = groupScheduleService.getSchedulesByGroupRoom(groupRoomId, userInfo); return CommonUtils.success(scheduleResponses); } @Operation(summary = "그룹 스케줄: 조회") - @GetMapping("/api/v1/groupRoom/{groupRoomId}/{scheduleId}") + @GetMapping("/api/v1/group-rooms/{groupRoomId}/{scheduleId}") public CommonResponse getGroupSchedule(@PathVariable Long groupRoomId, @PathVariable Long scheduleId, @AuthenticationPrincipal UserInfo userInfo) { GroupScheduleResponse scheduleResponses = groupScheduleService.getGroupScheduleById(userInfo, groupRoomId, scheduleId); return CommonUtils.success(scheduleResponses); } @Operation(summary = "그룹 스케줄: 스케줄 수정") - @PatchMapping("/api/v1/groupRoom/{groupRoomId}/{scheduleId}") + @PatchMapping("/api/v1/group-rooms/{groupRoomId}/{scheduleId}") public CommonResponse updateScheduleByGroupRoom(@PathVariable Long groupRoomId, @PathVariable Long scheduleId, @RequestBody ScheduleRequest scheduleRequest, @AuthenticationPrincipal UserInfo userInfo) { ScheduleResponse scheduleResponse = groupScheduleService.updateScheduleByGroupRoom(groupRoomId, scheduleId, scheduleRequest, userInfo); return CommonUtils.success(scheduleResponse); } @Operation(summary = "그룹 스케줄: 스케줄 삭제") - @DeleteMapping("/api/v1/groupRoom/{groupRoomId}/{scheduleId}") + @DeleteMapping("/api/v1/group-rooms/{groupRoomId}/{scheduleId}") public ResponseEntity deleteScheduleByGroupRoom(@PathVariable Long groupRoomId, @PathVariable Long scheduleId, @AuthenticationPrincipal UserInfo userInfo) { groupScheduleService.deleteScheduleByGroupRoom(groupRoomId, scheduleId, userInfo); return new ResponseEntity<>(HttpStatus.OK);