Şöyle yaparız
import org.apache.camel.builder.RouteBuilder;import org.springframework.stereotype.Component;@Componentpublic class RestAPIClientRoute extends RouteBuilder {@Overridepublic void configure() throws Exception {restConfiguration().host("dummy.restapiexample.com").port(80);from("timer:rest-client?period=10s").to("rest:get:/api/v1/employees").log("${body}");}}
Hiç yorum yok:
Yorum Gönder