When URL-encoding GET parameters, Rudy adds brackets([]) by default to any parameters in an Array. For example, if you tried to pass these parameters:
Person.all(param: [1, 2, 3])Ruby would encode the URL as
?param[]=1¶m[]=2¶m[]=3
If you prefer flattened notation instead, pass a params_encoder option of :flat when mapping the call. So this call:
class Person < Flexirest::Base
get :all, '/people', params_encoder: :flat
endwould output the following URL:
?param=1¶m=2¶m=3
< Per-request timeouts | Automatic conversion of fields to Date/DateTime >