Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set input mapping for all requests, not just application/json

Looking at the examples for AWS API Gateway in order to map a querystring to the Lambda function it shows examples of creating a template map for application/json in the integration request. How do I create a template for all requests no matter the Content-Type? I want it to fire the Lambda with the querystring params regardless of the Content-Type in the request.

like image 727
MonkeyBonkey Avatar asked Sep 27 '22 01:09

MonkeyBonkey


1 Answers

This is not possible at the moment. There is no documented wild card available.

"application/json" is the default content type. This is used if no content type is specified in the request (source: https://forums.aws.amazon.com/thread.jspa?threadID=215471).

like image 119
h-kippo Avatar answered Nov 01 '22 14:11

h-kippo