Skip to content

Integration

tarun-palisetty edited this page May 30, 2019 · 1 revision

Fees-register integration by the other services and components

Below the sample code snippet showing fees-register integration using Feign client

Here the client is invoking /fees end-point to retrieve all fees. Map the end-point response into the dto respectively.

    ....
    
    @FeignClient(name = "fees-register-client", url = "${fees.register.url}")
    public interface FeesRegisterClient {
        Logger LOG = getLogger(FeesRegisterClient.class);
    
        @GetMapping(value = "/fees-register/fees")
        List<Fee2Dto> getFeesData();
        
    ....    

The other rest end-points can be invoked similarly with the required details.

Clone this wiki locally