Data Mapping
Explore how data mapping works within AWS API Gateway to control the flow of data between clients and backend services. Understand how to use integration requests and responses along with Apache Velocity templates to customize data transformation, reducing latency and costs while improving API functionality.
We'll cover the following...
Data flow
When we invoke a REST API, the data flows through a series of steps, as shown below:
The method request identifies the incoming request and extracts components like the path parameters, headers, and query parameters. It can validate the request based on these components.
The integration request maps the available inputs to the inputs required by the target API. It has the required IAM role needed to invoke the target API.
The target API could be a Lambda function, any AWS service, or an external URL our API invokes as part of the integration.
The integration response maps the response from the target service to the response ...