diff --git a/ontime-back/src/main/java/devkor/ontime_back/config/SwaggerConfig.java b/ontime-back/src/main/java/devkor/ontime_back/config/SwaggerConfig.java index 53fc311..002969b 100644 --- a/ontime-back/src/main/java/devkor/ontime_back/config/SwaggerConfig.java +++ b/ontime-back/src/main/java/devkor/ontime_back/config/SwaggerConfig.java @@ -13,11 +13,11 @@ import org.springframework.context.annotation.Configuration; @Configuration -//@OpenAPIDefinition( -// servers = { -// @Server(url = "https://ontime.devkor.club", description = "Production Server") -// } -//) +@OpenAPIDefinition( + servers = { + @Server(url = "https://ontime.devkor.club", description = "Production Server") + } +) public class SwaggerConfig { @Bean public OpenAPI openAPI() { diff --git a/ontime-back/src/main/java/devkor/ontime_back/controller/ScheduleController.java b/ontime-back/src/main/java/devkor/ontime_back/controller/ScheduleController.java index 503568c..6028004 100644 --- a/ontime-back/src/main/java/devkor/ontime_back/controller/ScheduleController.java +++ b/ontime-back/src/main/java/devkor/ontime_back/controller/ScheduleController.java @@ -219,7 +219,7 @@ public ResponseEntity>> getLatenes )), @ApiResponse(responseCode = "4XX", description = "준비과정 조회 실패", content = @Content(mediaType = "application/json", schema = @Schema(example = "실패 메세지(정확히 어떤 메세지인지는 모름)"))) }) - @GetMapping("/{scheduleId}/preparation") + @GetMapping("/{scheduleId}/preparations") public ResponseEntity>> getPreparation(HttpServletRequest request, @PathVariable UUID scheduleId) { Long userId = userAuthService.getUserIdFromToken(request); List preparationDtoList = scheduleService.getPreparations(userId, scheduleId); diff --git a/ontime-back/src/test/java/devkor/ontime_back/controller/ScheduleControllerTest.java b/ontime-back/src/test/java/devkor/ontime_back/controller/ScheduleControllerTest.java index ca00cc9..b0c60da 100644 --- a/ontime-back/src/test/java/devkor/ontime_back/controller/ScheduleControllerTest.java +++ b/ontime-back/src/test/java/devkor/ontime_back/controller/ScheduleControllerTest.java @@ -212,7 +212,7 @@ void getPreparation_success() throws Exception { when(scheduleService.getPreparations(userId, scheduleId)).thenReturn(mockPreparations); // when & then - mockMvc.perform(get("/schedules/{scheduleId}/preparation", scheduleId) + mockMvc.perform(get("/schedules/{scheduleId}/preparations", scheduleId) .header("Authorization", "Bearer test-token") .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) // HTTP 200 확인