Created
August 19, 2019 13:53
-
-
Save cleopatra27/8f79dcc7c53f3eb1448066ce6d2a1ff4 to your computer and use it in GitHub Desktop.
Sample mapping template for APIGATEWAY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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