Integration Request LAMBDA
will pass the request body alone to Lambda
Where as Integration Request LAMBDA_PROXY
will attach headers, query params, etc and send enriched request similar to how it is here and request body will simply be as string within body
. This already contains everything that we need, api-key used, api-id, headers, stages, parms, etc. if we don't like this, then we can customize the request body by setting a custom mapping template(like the other answer)
We can enable Lambda Proxy integration by clicking on Integration Request and checking on Use Lambda Proxy integration
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…