I want to combine request body and querystring parameters before sending it to lambda. Let's say I have an entity in Lambda as below :
Class Person {
private String firstName;
private String lastName;
private String language;
}
And the json which sent to api gateway is{"firstName":"Foo","lastName":"Bar"}
As you see "language" field is missing in request body. I want to get this language field from querystring and add to json.
How can I achieve tihs ?
Is there a way to do in integration request section ? For example :
$input.json(x).append("language":"$input.params('name')")
I could not find any valuable information. Thanks in advance.