grails-plugins / grails-rest-client-builder

REST client plugin that uses Spring's RestTemplate
http://grails.org/plugin/rest-client-builder
Apache License 2.0
65 stars 32 forks source link

Cannot use JSON query parameters #3

Closed bluesliverx closed 11 years ago

bluesliverx commented 12 years ago

Due to the RestTemplate method used (exchange), it expects all query parameters containing "{...}" to be a URI variable. Can you provide a RequestCustomizer method for handling uri variables so this can be done? This would probably be the easiest solution and least invasive.

A little documentation on how to do it and this limitation would be great as well.

I can create a pull request if you'd like me to, just let me know.

bluesliverx commented 12 years ago

Any idea when you are going to release again with this fix in there?

graemerocher commented 11 years ago

Maybe if you provide an example of what you are trying to achieve?

bluesliverx commented 11 years ago

? A good example is in the test case I wrote for it: https://github.com/bluesliverx/grails-rest-client-builder/commit/ac5cf470bfc1b37ce714e65f85694f1e89f630bb. I would like to use JSON query parameters, and the curly braces try to use URI variables instead of using them as straight pass-through.

Thanks!