Re: How to read data from a paginated API and upload it as multipart file to S3 page by page

2023-08-04 Thread Federico Mariani
Hi Sahil, I already replied in zulip chat, but you can start with the following snippet: from("direct:upload") .loopDoWhile(simple("${body} != '[]'")) .choice() .when(simple("${exchangeProperty.CamelLoopIndex} > 0")) // API page start from 1

Re: How to read data from a paginated API and upload it as multipart file to S3 page by page

2023-08-04 Thread Sahil Upneja
Hi Ralf, Thanks for your Response. Sorry I could not understand much as I am very new to camel. Can you please share some article or code snippet (a small example) which is implementing something like this. That will be really a great help. Thanks in advance Regards Sahil On Tue, Aug 1, 2023