Skip to content
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

Cannot pass GET resources query string params #5

Open
minaguib opened this issue Nov 9, 2016 · 1 comment
Open

Cannot pass GET resources query string params #5

minaguib opened this issue Nov 9, 2016 · 1 comment

Comments

@minaguib
Copy link

minaguib commented Nov 9, 2016

The Dyn endpoint GET REST/AllRecord/<zone> has special support for query string arguments, for example, detail=y

Unfortunately, without using dirty ruby trickery, it's currently impossible to supply QS vars to this library for GET calls:

  • If supplied in a concatenated string in the resource path to rest_call (eg: "REST/AllRecord/example.com?detail=y"), this method unpacks and re-packs it with a / at the end, causing a broken path
  • If supplied in the arguments arg to rest_call, it's completely ignored in this if condition
@atrepca
Copy link
Owner

atrepca commented Nov 7, 2017

Hey @minaguib, sorry for the very late reply here, I missed this. I'm looking at the docs for REST/AllRecord and I see:

Arguments:
No Arguments.

Where did you see arguments can be passed to this REST resource?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants