README.md in flexirest-1.3.9 vs README.md in flexirest-1.3.10
- old
+ new
@@ -615,9 +615,36 @@
class Person < Flexirest::Base
get :all, '/people', timeout: 5
end
```
+### Per-request Params Encoding
+
+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:
+
+```ruby
+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:
+
+```ruby
+class Person < Flexirest::Base
+ get :all, '/people', params_encoder: :flat
+end
+```
+would output the following url
+
+```
+?param=1¶m=2¶m=3
+```
+
### Raw Requests
Sometimes you have have a URL that you just want to force through, but have the response handled in the same way as normal objects or you want to have the filters run (say for authentication). The easiest way to do that is to call `_request` on the class:
```ruby