-
Notifications
You must be signed in to change notification settings - Fork 204
How to pass application/x-www-form-urlencoded data through API Gateway to Lambda #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am also stuck in the same issue. Having a difficult time mapping data coming from an HTML form in "application/x-www-form-urlencoded" content-type to dynamodb. |
@SuperSarkar if you are "successful" it would be great if you can share the solution. 😉 (thanks!) |
Wasted two days. Can't make this happen without involving a lambda function in between. I am giving up. I will use a lambda function. |
@SuperSarkar fair enough ... 👍 |
I finally got the template from StackOverflow working. Here's my integration request mapping template to insert new item into a DynamoDB table from a HTML form:
There is one major problem though, I am hard-coding the type of the value by using "S". It would be awesome if someone could point to a direction to make this more flexible. |
+1 |
If you are using serverless, there's a middy middleware: https://www.npmjs.com/package/@middy/http-urlencode-body-parser |
I'm trying to allow an HTML Form to be submitted (without any JS XHR/Ajax)
and it appears to be quite tedious in API Gateway ...
http://stackoverflow.com/questions/32057053/how-to-pass-a-params-from-post-to-aws-lambda-from-amazon-api-gateway
which lead to: https://forums.aws.amazon.com/thread.jspa?messageID=673012
The text was updated successfully, but these errors were encountered: