package osm.surveyor.task.plateau; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; @RestController public class PlateauController { private PlateauService plateauService; public PlateauController(PlateauService plateauService) { this.plateauService = plateauService; } @GetMapping(value = "/plateau") public Boolean getPlateauStatus() throws Exception { return plateauService.getPlateauStatus(); } @GetMapping(value = "/plateau/{citycode}") public String getPlateau(@PathVariable("citycode") String citycode) throws Exception { return plateauService.getPlateau(citycode); } }