Skip to content

Instantly share code, notes, and snippets.

@StevenACoffman
Forked from pmuellr/req-mapping.json
Created March 4, 2017 18:12
Show Gist options
  • Save StevenACoffman/c71cfe8a942ad524ff1143852c171b4f to your computer and use it in GitHub Desktop.
Save StevenACoffman/c71cfe8a942ad524ff1143852c171b4f to your computer and use it in GitHub Desktop.
aws api gateway integration request mapping template for aws lambda
{
"method": "$context.httpMethod",
"resourcePath": "$context.resourcePath",
"querystring": {
#foreach($key in $input.params().querystring.keySet())
"$key": "$input.params().querystring.get($key)"#if($foreach.hasNext),#end
#end
},
"path": {
#foreach($key in $input.params().path.keySet())
"$key": "$input.params().path.get($key)"#if($foreach.hasNext),#end
#end
},
"header": {
#foreach($key in $input.params().header.keySet())
"$key": "$input.params().header.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