Replies: 1 comment 2 replies
-
Have you tried adding a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have written a custom MessageBodyReader to handle a use case in my application where a POST method has multiple parameters that come from inside the message body. I know this is highly unusual in REST but its a legacy application. In this custom MessageBodyReader I'm parsing the incoming JSON and matching the parameter to the corresponding entry in the JSON using a custom annotation.
Here is some sample code from the method and from the reader:
Observations:
What am I missing here?
How would you advise handling these situations where existing code needs to be exposed and methods have multiple objects that would need to be passed inside the body of a message?
I'm using Wildfly 34.0.1.
Thanks,
-Titus
Beta Was this translation helpful? Give feedback.
All reactions