RestClient icon indicating copy to clipboard operation
RestClient copied to clipboard

When repeating parameter is required, URI string manipulation is the only way to add it

Open kobi666 opened this issue 4 years ago • 1 comments

not sure if issue or feature request..

example from google maps (markers parameter)

http://maps.googleapis.com/maps/api/staticmap?&size=600x400&style=visibility:on &style=feature:water%7Celement:geometry%7Cvisibility:on &style=feature:landscape%7Celement:geometry%7Cvisibility:on &markers=anchor:32,10%7Cicon:https://goo.gl/5y3S82%7CCanberra+ACT &markers=anchor:topleft%7Cicon:http://tinyurl.com/jrhlvu6%7CMelbourne+VIC &markers=anchor:topright%7Cicon:https://goo.gl/1oTJ9Y%7CSydney+NSW&key=YOUR_API_KEY

since the Params in the request helper accepts a dictionary, there is no way to add a parameter that repeats. I would suggest a patch to introduce an AdditionalParams# or RepeatingParams# property to the requestHelper, tho i'm sure you can think of a waaayyy better solution

kobi666 avatar Jun 30 '21 08:06 kobi666

Ohh interesting, any pull request is welcome! ❤️

jdnichollsc avatar Jun 30 '21 14:06 jdnichollsc