Browse Source

Swagger 어노테이션 추가

pull/8/head
lkd9125 1 year ago
parent
commit
22059b0427
  1. 22
      pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java

22
pav-server/src/main/java/com/palnet/biz/api/main/dash/controller/MainDashController.java

@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -164,7 +165,10 @@ public class MainDashController {
@GetMapping(value = "/stcs/flight/date/{type}") @GetMapping(value = "/stcs/flight/date/{type}")
@ApiOperation(value = "김포공항, 비행실적 통계") @ApiOperation(value = "김포공항, 비행실적 통계")
@Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API")
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) @ApiImplicitParams({
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class),
@ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class)
})
public ResponseEntity<? extends BasicResponse> flightStatistics(String date, @PathVariable String type){ public ResponseEntity<? extends BasicResponse> flightStatistics(String date, @PathVariable String type){
String[] formatParam = null; String[] formatParam = null;
@ -194,7 +198,10 @@ public class MainDashController {
@GetMapping("/stcs/plan-allow/date/{type}") @GetMapping("/stcs/plan-allow/date/{type}")
@ApiOperation(value = "김포공항, 비행승인 통계") @ApiOperation(value = "김포공항, 비행승인 통계")
@Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API")
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) @ApiImplicitParams({
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class),
@ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class)
})
public ResponseEntity<? extends BasicResponse> planAllowStatistics(String date ,@PathVariable String type){ public ResponseEntity<? extends BasicResponse> planAllowStatistics(String date ,@PathVariable String type){
String[] formatParam = null; String[] formatParam = null;
@ -224,7 +231,11 @@ public class MainDashController {
@GetMapping("/stcs/drone-flight/date/{type}") @GetMapping("/stcs/drone-flight/date/{type}")
@ApiOperation(value = "김포공항, 드론별 비행 통계") @ApiOperation(value = "김포공항, 드론별 비행 통계")
@Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API")
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) @ApiImplicitParams({
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class),
@ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class),
@ApiImplicitParam(name = "idntfNum",value = "드론식별번호", dataTypeClass = String.class),
})
public ResponseEntity<? extends BasicResponse> droneFlightStatistics(String date, @RequestParam(required = true) String idntfNum, @PathVariable String type){ public ResponseEntity<? extends BasicResponse> droneFlightStatistics(String date, @RequestParam(required = true) String idntfNum, @PathVariable String type){
log.info("idntfNum -> {}", idntfNum); log.info("idntfNum -> {}", idntfNum);
@ -255,7 +266,10 @@ public class MainDashController {
@GetMapping("/stcs/warning-flight/date/{type}") @GetMapping("/stcs/warning-flight/date/{type}")
@ApiOperation(value = "김포공항, 비정상상황 비행 통계") @ApiOperation(value = "김포공항, 비정상상황 비행 통계")
@Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API") @Tag(name = "메인화면 컨트롤러", description = "메인화면 관련 API")
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class) @ApiImplicitParams({
@ApiImplicitParam(name = "date",value = "날짜", dataTypeClass = String.class),
@ApiImplicitParam(name = "type",value = "날짜형식", dataTypeClass = String.class)
})
public ResponseEntity<? extends BasicResponse> warningFlightStatistics(String date, @PathVariable String type){ public ResponseEntity<? extends BasicResponse> warningFlightStatistics(String date, @PathVariable String type){
String[] formatParam = null; String[] formatParam = null;

Loading…
Cancel
Save