Skip to content

Commit

Permalink
fix: stop congestion schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkenhw committed Sep 29, 2023
1 parent f3ba44c commit cdca8d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ResponseEntity<StationsSummaryResponse> getStationsSummary(@RequestParam
return ResponseEntity.ok(new StationsSummaryResponse(stations));
}

@GetMapping("/stations/regions")
@GetMapping("/stations/markers/regions")
public ResponseEntity<List<RegionMarker>> getMarkerByRegions(@RequestParam List<String> regions) {
return ResponseEntity.ok(stationQueryService.findMarkersByRegions(regions));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ class StationControllerTest extends MockBeanInjection {
// when
when(stationQueryService.findMarkersByRegions(List.of("seoul")))
.thenReturn(List.of(new RegionMarker("서울", BigDecimal.valueOf(37.540705), BigDecimal.valueOf(126.956764), 1)));

// then
mockMvc.perform(RestDocumentationRequestBuilders.get("/stations/regions").queryParam("regions", "seoul"))
mockMvc.perform(RestDocumentationRequestBuilders.get("/stations/markers/regions").queryParam("regions", "seoul"))
.andExpect(status().isOk())
.andDo(customDocument("findMarkerByRegion",
requestParameters(
Expand Down

0 comments on commit cdca8d1

Please sign in to comment.