intermediate-configuring-the-api-gateway-transforming-messages
Version 1.1 by marijn on 2022/05/17 08:39
Transforming messages
In the crash course on API Gateway, we learned the basics of the API Gateway pattern. Then, we focused on what we call passthrough cases. Now, we will focus on transforming messages between the front end and the backend of the API Gateway. We will see that the functionality is similar compared to what we see within other patterns.Should you have any questions, please get in touch with academy@emagiz.com.- Last update: August 20th, 2021
- Required reading time: 5 minutes
1. Prerequisites
- Intermediate knowledge of the eMagiz platform
- Basic knowledge of the API Gateway pattern
2. Key concepts
This microlearning is about transforming messages within the API Gateway pattern.By transforming messages, we mean: Changing the structure of the data from what you receive to what you want to send to the backend operation.Interesting points to consider are:- The transformation process works similarly across patterns
- The benefit of having the transformation capability is that it expands the capabilities of the API Gateway. This fact makes it more attractive to use the eMagiz API Gateway
- You can transform from JSON to JSON and from JSON to XML with the standard transformation functionality (for the API Gateway)
3. Transforming messages
In the crash course on API Gateway, we learned the basics of the API Gateway pattern. Then, we focused on what we call passthrough cases. Now, we will focus on transforming messages between the front end and the backend of the API Gateway. We will see that the functionality is similar compared to what we see within other patterns.Interesting points to consider are:- The transformation process works similarly across patterns
- The benefit of having the transformation capability is that it expands the capabilities of the API Gateway. This fact makes it more attractive to use the eMagiz API Gateway
- You can transform from JSON to JSON and from JSON to XML with the standard transformation functionality (for the API Gateway)

Practice
4. Assignment
Design an API Gateway operation in which you perform a transformation between the frontend and the backend of the API Gateway. This assignment can be completed with the help of the (Academy) project that you have created/used in the previous assignment.5. Key takeaways
- The transformation process works similarly across patterns
- The benefit of having the transformation capability is that it expands the capabilities of the API Gateway. This fact makes it more attractive to use the eMagiz API Gateway
- You can transform from JSON to JSON and from JSON to XML with the standard transformation functionality (for the API Gateway)
- To activate the transformation capabilities, you should select the Transformation option on the operation level in the Design phase.