package space.nstart.pcp.pcp_request_service.controller

import org.springframework.beans.factory.annotation.Autowired
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 space.nstart.pcp.pcp_request_service.service.RVAService
import space.nstart.pcp.pcp_types_lib.dto.ballistics.IcRvaRequestDTO


@RestController
@RequestMapping("api/rva")
class RVAController {

    @Autowired
    private lateinit var rvaService: RVAService

    @PostMapping
    fun getZRV(@RequestBody body : IcRvaRequestDTO) = rvaService.calculateRVA(body)
}