Hi,

Would it be possible to describe or give a sample how to aggregate/enrich a
paged REST API where the page interval is part of the JSON payload that is
part of each HTTP request?

Thank you..

On Wed, Oct 16, 2019 at 4:55 PM Jean-Baptiste Onofré <[email protected]>
wrote:

> Hi Tom,
>
> You can also use a poll enricher with a aggregation.
>
> All depends about the trigger to call the webservice.
>
> Regards
> JB
>
> On 16/10/2019 16:52, Tom Coudyzer wrote:
> > Hi,
> >
> > I just started on learning Apache Camel, so please forgive me my basic
> > questions.
> >
> > I'm having a webservice called via POST having a payload with paging
> > information in it.
> >
> > What is the best way currently in Camel to produce an output which
> contains
> > the consolidated values from the calls.
> >
> > I was able to come up with a solution by using a loopDoWhile with a
> > predicate. I manipulate the paging via a header value in the Exchange.
> >
> > Are there better ways to solve this? Enrich? Aggregator?
> >
> > Thanks for educating me on this !
> >
> > Regards,
> > /Tom
> >
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to