Created
September 11, 2016 14:06
-
-
Save meetbryce/8ccd9747b5e3abe709b652b5521cfcaf to your computer and use it in GitHub Desktop.
Template for adding new key:value pair (property) to your AWS API Gateway Body Mapping Template
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
{ | |
"stage" : "$context.stage", | |
#foreach( $key in $input.path('$').keySet() ) | |
"$key": "$input.path('$').get($key)"#if($foreach.hasNext), | |
#end | |
#end | |
} |
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
{ | |
"edited": "yes", | |
#foreach( $key in $input.path('$').keySet() ) | |
"$key": "$input.path('$').get($key)"#if($foreach.hasNext), | |
#end | |
#end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment