-
Notifications
You must be signed in to change notification settings - Fork 4
Integration
tarun-palisetty edited this page May 30, 2019
·
1 revision
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.