Going through the learning curve, and came across this scenario:
Given that 90% of the calls are JSON, added a GSON decoder when building the client. However, there are some method calls in the interface that should support raw return without decoding.
@RequestLine("GET /rest/myrawmethod")
String getRawMethod();
Currently since GSON is added as a decoder, instead of returning the raw string it attempts to decode it (it does look like JSON content, but I want to bypass decoding). I can't seem to find an easy way to disable for specific interface methods when not to use the GSON decoder as the exception.
Thanks!
Saw some references to various approaches, this seems like the best avenue at this time:
Then when you go to parse the response, use something like:
Good way to prototype in scenarios where you don't have anything around the REST payload, only the method calls...or want to do something more exotic (like use the feign.Response streaming methods).