I am new to Apache Camel and I am having problems understanding how to implement a simple integration task:
So the use case is
- Get list identifiers from request body ${body.ids} contains the list of my id on which i want to iterate. Example : 1, 3, 65, 6 How to iterate over these ( as in java foreach ) ?
- Loop over my identifiers list and call the endpoint with the current identifier; e.g a get person/{id} AND add the response Person to my person collections. Which EIP to use to collect each response of rest call and aggregate them into a list ?
- Transform my collection of person to another type.
- Return the response
Thanks for your help