fio10 / microservice-exercise

Microservices Exercise
1 stars 0 forks source link

Create the POST requests for Customer Entity #3

Open fio10 opened 10 months ago

fio10 commented 10 months ago

@RestController @RequestMapping("/eligibility/rest/v7") public class ...

@GetMapping(value = "/getTcl/{customerIdentity}", produces = "application/json") public TotalCreditLimitResponse getTcl(@PathVariable String customerIdentity) { return tclFetcherService.getTcl(customerIdentity); }

    @PostMapping(value = "/getRiskInfo", consumes = "application/json", produces = "application/json")
    public RiskInfoResponse getRiskInfo(@RequestBody RiskInfoRequest customerRiskInfoRequest) {
            return customerDataService.createRiskInfoResponse(customerRiskInfoRequest);
    }