Add possibility to get body from feign.Response as a decoded object
See original GitHub issueCurrently decoding of a Response.body()
needs to be done manually. It’ll be great to get a method body().asObject(MyDtoType.class)
Issue Analytics
- State:
- Created 7 years ago
- Comments:29 (9 by maintainers)
Top Results From Across the Web
Decode response body from feign client to MyObject
This answer is a little late, you can decode the body manually using a JSON deserializer such as Jackson:
Read more >feign.Response.body java code examples - Tabnine
@Override public Object decode(Response response, Type type) throws IOException, FeignException { if (type.equals(InputStream.class)) { byte[] body ...
Read more >Consuming REST API Using Feign - Nimbleways
1. first, create the request for the remote resource by specifying the URL, and the ( headers, body ) if needed. · 2....
Read more >Retrieve Original Message From Feign ErrorDecoder - Baeldung
In this tutorial, we'll look at how to retrieve the original message from the Feign client if the integrated REST service throws an...
Read more >OpenFeign/feign - Gitter
Hi guys, I was wondering if it's possible to have a different JSON response coming back in an error, for example, when the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Don’t you think it will be useful for end users to have such functionality out-of-the-box?
closing this issue as won’t fix. if it comes up often, we can reconsider