@ -1,20 +1,22 @@
package kr.xit.ens.nice.web ;
import org.springframework.http.MediaType ;
import org.springframework.web.bind.annotation.PostMapping ;
import org.springframework.web.bind.annotation.RequestBody ;
import org.springframework.web.bind.annotation.RequestMapping ;
import org.springframework.web.bind.annotation.RestController ;
import io.swagger.v3.oas.annotations.Operation ;
import io.swagger.v3.oas.annotations.media.Content ;
import io.swagger.v3.oas.annotations.media.ExampleObject ;
import io.swagger.v3.oas.annotations.tags.Tag ;
import kr.xit.biz.ens.model.nice.NiceCiDTO ;
import kr.xit.biz.ens.model.nice.NiceCiDTO.NiceCiRequest ;
import kr.xit.core.model.ApiResponseDTO ;
import kr.xit.core.model.IApiResponse ;
import kr.xit.ens.nice.cmm.CmmNiceCiUtils ;
import kr.xit.ens.nice.service.INiceCiService ;
import lombok.RequiredArgsConstructor ;
import org.springframework.http.MediaType ;
import org.springframework.web.bind.annotation.PostMapping ;
import org.springframework.web.bind.annotation.RequestBody ;
import org.springframework.web.bind.annotation.RequestMapping ;
import org.springframework.web.bind.annotation.RestController ;
/ * *
* < pre >
@ -114,4 +116,22 @@ public class NiceCiController {
return ApiResponseDTO . success ( service . requestCi ( reqDTO ) ) ;
}
//--------------------------------------------------------------------------------
@io.swagger.v3.oas.annotations.parameters.RequestBody ( required = true , content = {
@Content (
mediaType = "application/json" ,
examples = {
@ExampleObject (
name = "교통시설운영처" ,
value = PARAM1 ) ,
@ExampleObject (
name = "승화원" ,
value = PARAM2 )
} )
} )
@Operation ( summary = "아이핀 CI 요청" , description = "아이핀 CI 요청" )
@PostMapping ( value = "/requestNiceCi" , produces = MediaType . APPLICATION_JSON_VALUE )
public NiceCiDTO . IpinCiResDataBody requestNiceCi ( @RequestBody final NiceCiRequest reqDTO ) {
return service . requestCi ( reqDTO ) ;
}
}