I have a lambda which returns statusCode
, body
and isBase64Encoded
as defined in https://docs.aws.amazon.com/apigateway/latest/developerguide/handle-errors-in-lambda-integration.html .
But after the api gateway integration (as lambda integration not lambda proxy), it returns exactly that in response.
{
"statusCode": 200,
"body": "{\"key1\":\"value 1\",\"foo\":\"bar\"}",
"isBase64Encoded": false
}
Do I need something in response mapping template to convert this lambda response to proper http response?
{"key1":"value 1","foo":"bar"}
– Balu Vyamajala