Newer
Older
task-bldg / src / main / java / osm / surveyor / task / plateau / PlateauController.java
@haya4 haya4 16 days ago 757 bytes Plateau API test
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);
	}
}