From 7315324e46db6243cd164b4c997266b91b5668a1 Mon Sep 17 00:00:00 2001 From: SangWoon123 Date: Tue, 28 May 2024 18:49:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20GroupSchedule=20API=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schedule/controller/GroupScheduleController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);