년도 1개만 조회하는 타일 API
This commit is contained in:
@@ -226,11 +226,18 @@ public class LayerApiController {
|
||||
return ApiResponseDto.ok(layerService.findLayerMapList("labeling"));
|
||||
}
|
||||
|
||||
@Operation(summary = "년도별 tile Url", description = "년도별 tile Url")
|
||||
@Operation(summary = "년도별 tile Url(before,after 모두 조회)", description = "년도별 tile Url")
|
||||
@GetMapping("/tile-url")
|
||||
public ApiResponseDto<LayerDto.YearTileDto> getChangeDetectionTileUrl(
|
||||
@Parameter(description = "이전 년도", example = "2023") @RequestParam Integer beforeYear,
|
||||
@Parameter(description = "이후 년도", example = "2024") @RequestParam Integer afterYear) {
|
||||
return ApiResponseDto.ok(layerService.getChangeDetectionTileUrl(beforeYear, afterYear));
|
||||
}
|
||||
|
||||
@Operation(summary = "년도별 tile Url(년도 1개만 조회)", description = "년도별 tile Url")
|
||||
@GetMapping("/tile-url-year")
|
||||
public ApiResponseDto<LayerDto.TileUrlDto> getChangeDetectionTileOneYearUrl(
|
||||
@Parameter(description = "년도", example = "2023") @RequestParam Integer year) {
|
||||
return ApiResponseDto.ok(layerService.getChangeDetectionTileOneYearUrl(year));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user