Mapping Template

The template is made using the Velocity Template Language created by Apache

Integration Request

이 부분을 수정해야 함.

application/json Content-Type 을 추가.

Mapping Template

{"body" : $input.json('$'),"headers": {#foreach($header in $input.params().header.keySet())"$header": "$util.escapeJavaScript($input.params().header.get($header))" #if($foreach.hasNext),#end#end},"method": "$context.httpMethod","resourcePath": "$context.resourcePath","params": {#foreach($param in $input.params().path.keySet())"$param": "$util.escapeJavaScript($input.params().path.get($param))" #if($foreach.hasNext),#end#end},"query": {#foreach($queryParam in $input.params().querystring.keySet())"$queryParam": "$util.escapeJavaScript($input.params().querystring.get($queryParam))" #if($foreach.hasNext),#end#end}}

Resources

https://notion-ga.astrocket.vercel.app/collect?tid=UA-170846618-2&host=notion.so&page=/engineering/API_Gateway_request_setting