Skip to content

Instantly share code, notes, and snippets.

@leemeichin
Created March 23, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemeichin/b3a2ec5294a73c6d3c973654110ad774 to your computer and use it in GitHub Desktop.
Save leemeichin/b3a2ec5294a73c6d3c973654110ad774 to your computer and use it in GitHub Desktop.
{
"method": "$context.httpMethod",
"body" : $input.json('$'),
"headers": {
"x-api-key": "$util.escapeJavaScript($input.params().querystring.get('key'))"
#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