Amazon APi gateway fails to generate transformed request

前端 未结 2 1995
心在旅途
心在旅途 2021-01-18 04:45

I was trying the integration of Amazon API gateway with Lambda function. I was successfully able to achieve though but when I tried with curl it fails.

Lambda method

2条回答
  •  醉话见心
    2021-01-18 05:03

    Please make sure your content-type what you defined in integration request template.

    You can try this curl command.

    curl -X POST https://aaaaaaa.execute-api.us-west-2.amazonaws.com/beta/apitest/xml -H "Content-Type: application/json" --data-binary "Articletext"

提交回复
热议问题