Demo repository for showcasing Kaoto for the Partner day
The goal for this demo is to show how can we consume data from a rest endpoint and perform data mapping process to the XML payload. We're gonna use variables to leverage the information coming from different endpoints and we're gonna explore how to print them out to the terminal for quick prototyping and lastly save the transformed data into files.
- Create a new Route using the Kaoto perspective
- Create a separate route to fetch information from the
/account
endpoint - Store the data into the account variable
- Create a separate route to fetch information from the
/cart
endpoints - Show the data in the terminal
- Transform the body to a XML document
org.w3c.dom.Document
- Perform data mapping between the two XML documents
- Print the resulting document to the terminal
- Store the documents into files