API Gateway Integration Types
- Mock
- returns a response without sending request to backend
- HTTP / AWS (lambda & AWS Services)
- You must configure both integration request and integration response
- Setup data mapping using mapping templates for the request and response
- for AWS and HTTP integration
- Can be used to modify request/ response
- Rename/modify query string parameters
- Modify body content
- add headers
- Uses Velocity Template Language (VTL): for loop, if, ...
- Filter output results (remove unnecessary data)
- Example: Client with SOAP API integration with API Gateway
- AWS_PROXY (Lamda Proxy)
- input straight to lambda. the function is responsible for the logic of request, response
- No mapping templates, headers, query string parameters
- Those are passed as arguments
- HTTP_PROXY
- No mapping template
- HTTP request is passed directly to the backend
- HTTP response from backend is forwarded by API Gateway