Reputation: 1734
Where is document for AWS Lambda Programming model with "API Gateway"?
For example,
What fields are there in handler's request params?
(headers, queryParameter, ...)
What fields should be there for handler's response?
(statusCode, body, ...)
I saw some code example for Lambda and API Gateway. But I cann't find reference documentation.
Upvotes: 0
Views: 50
Reputation: 5421
You could find it in API Gateway Mapping Template Reference article, in the 'Accessing the $input Variable' section.
Also, you could check my answer for the similar question.
Your template has to look like next:
{
"name" : "$input.params('name')",
"body" : $input.json('$')
}
Upvotes: 2