i'm trying deploy lambda function aws api gateway. able succesfully deploy , test post , methods content-type: application/json following blog: http://kennbrodhagen.net/2015/12/06/how-to-create-a-request-object-for-your-lambda-event-from-api-gateway/
i want same lambda function handle requests of content-type : text/plain
, x-www-form-urlencoded
also.
the problem integration template have define content-type before hand. if make integration template of content-type: text/plain
how can call integration template when api request of text/plain
made url. how can invoke different integration templates based on content-type of api request?
any tips on that?
thanks.
i don't know whether got problem right r not.
from understanding if passing header information or query string parameters , content type text/plain can map template this
{ "prod_id" : "$input.params('prod_id')" }
where product id can header or query string parameter.
you can find in blog in 'how pass query string section
Comments
Post a Comment