Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
flipping bits...

andrew quartey drexler

💭
flipping bits...
View GitHub Profile
@drexler
drexler / apiUriTemplate.vm
Last active Aug 14, 2017
extract AWS API Gateway url information with a mapping template
View apiUriTemplate.vm
{
"headers": {
#foreach($param in $input.params().header.keySet())
"$param": "$util.escapeJavaScript($input.params().header.get($param))" #if($foreach.hasNext),#end
#end
},
"pathParams": {
#foreach($param in $input.params().path.keySet())
"$param": "$util.escapeJavaScript($input.params().path.get($param))" #if($foreach.hasNext),#end
#end