Reputation: 3
Good day everyone, my problem related with Amazon Gateway API. I have the following case:
- Response received from 3rd party service and contains no query params (all necessary data stored in body)
- I'am able to modify body and pass it to target URL via Integration Request
- Integration Request finished, i receive some data from target endpoint
- Now i need to create Integration Response, based on original data (received in 1.) and data, received from target endpoint.
Problem appears at stage 4. I can't find a way to access original body here ($input.body contains response from target endpoint, there is no original data).
I also tried to store necessary data in scope variables ($input/$context), but it seems like AWS Gateway allows only to read it.
Upvotes: 0
Views: 521
Reputation: 1046
As of now, you cannot access the $input.body in the integration response mapping. We will consider supporting this in the future.
Upvotes: 2