Replace input.path("$") with input.json("$") in universal request template

This commit is contained in:
Philipp Muens 2016-06-15 19:45:38 +02:00
parent 87b5407aee
commit 5eb02b3d5a

View File

@ -39,7 +39,7 @@ module.exports = {
}
#end
{
"body": $input.path("$"),
"body": $input.json("$"),
"method": "$context.httpMethod",
#set( $map = $input.params().header )
@ -77,7 +77,7 @@ module.exports = {
"IntegrationHttpMethod" : "${method.toUpperCase()}",
"Type" : "AWS",
"Uri" : "${lambdaUri}",
"RequestTemplates": {
"RequestTemplates" : {
"application/json" : ${JSON.stringify(DEFAULT_JSON_REQUEST_TEMPLATE)}
}
},