That response looks wrong. My gut feeling is that you’ve configured the API Gateway to use Lambda integration but you’ve written the Lambda as though you’re using Lambda proxy integration. The API Gateway should be consuming the response and only returning the body in the HTTP body but here you’re saying it’s returning the entire response structure.
Hi @buggy , actually I did’t make with yml. I have first created lambda function in aws and then created API gateway pointing to that lambda function. I think here i can’t find serverless.yml file , please let me know if this can be extracted from API gateway .
If you’re not using the Serverless Framework then you need to look at the AWS console to figure out how you’ve configure the API gateway integration with Lambda. There are two methods Lambda and Lambda Proxy. My guess is you’re using Lambda and you need to be using Lambda Proxy. The other option is to keep Lambda and setting up mapping templates correctly.