-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for protocol type "query" #2
Comments
I tried to implement this for SNS and managed to have it working (at least for the request part, handling the response require XML). I had to remove the content type header (by returning Do you have a better idea on how to fix this (without changing the generator)? |
Hi! I'm happy to work with you on this. I've created a branch where I've started working on this: https://github.com/britzl/aws-sdk-lua/tree/query_support Two changes I've made:
Both of the above changes required a small change to the Mustache template. I haven't tried any of this yet. Some questions:
|
I found this about query requests: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html It looks like some requests may be GET request as well, although it doesn't look very common in AWS. It looks like it doesn't expect any POST data actually, in my tests I just didn't send anything. Your changes look pretty good in my opinion. It's really nice from you to still work on this. |
I'll try to find some time to configure and test an AWS service that uses query requests. You're using SNS right? For XML parsing I think xml2lua will do just fine: https://github.com/manoelcampos/xml2lua |
https://github.com/britzl/aws-sdk-lua/blob/master/aws-sdk/core/request_handlers/query.lua
The text was updated successfully, but these errors were encountered: