REST service call with Camel which requires authentication api called first
问题 Camel has to call REST service for some integration, However, the REST service has one authentication api (POST api) which needs to be called first to get a token and then other subsequent api calls has to be invoked with the token embedded in header of HTTP requests. Does Spring Restemplate or apache camel has some api to support the same? 回答1: Followed @gusto2 approach, Its pretty much working fine. SO, I created two routes --> First one is a timer based like below, this generates the token