Skip to content

Instantly share code, notes, and snippets.

@cleopatra27
Created August 19, 2019 13:53
Show Gist options
  • Save cleopatra27/8f79dcc7c53f3eb1448066ce6d2a1ff4 to your computer and use it in GitHub Desktop.
Save cleopatra27/8f79dcc7c53f3eb1448066ce6d2a1ff4 to your computer and use it in GitHub Desktop.
Sample mapping template for APIGATEWAY
{
"method": "$context.httpMethod",
"body" : $input.json('$'),
"headers": {
#foreach($param in $input.params().header.keySet())
"$param": "$util.escapeJavaScript($input.params().header.get($param))"
#if($foreach.hasNext),#end
#end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment