docs/proxying-apis.md in flexirest-1.10.2 vs docs/proxying-apis.md in flexirest-1.10.3
- old
+ new
@@ -38,10 +38,10 @@
```
This example does two things:
1. It rewrites the incoming URL for any requests matching "_/all_" to "/all_people"
-2. It uses the `translate` method to move the "fname" attribute from the response body to be called "first_name". The translate method must return the new object at the end (either the existing object alterered, or a new object to replace it with)
+2. It uses the `translate` method to move the "fname" attribute from the response body to be called "first_name". The translate method must return the new object at the end (either the existing object altered, or a new object to replace it with)
As the comment shows, you can use `url value` to set the request URL to a particular value, or you can call `gsub!` on the url to replace parts of it using more complicated regular expressions.
You can use the `get_params` or `post_params` methods within your proxy block to amend/create/delete items from those request parameters, like this: