Open kotak25krishna opened 8 years ago
Hey,
Library was not written with JAX-RS in mind, however, you should be able to implement MessageBodyReader<T>
so you can handle multiple types correctly, eg. resolve target type dynamically and than invoke resource converter.
Hi there,
And what about serializing objects with json-converter and exposing them with JAX-RS? Any hint how to do it would be more than welcome.
Got it working with MessageBodyWriter
@pawelradeckihomify So, how did you do it ?
Does Json api supports JAX-RS message readers and writers. I am trying to convert raw response to Rest resources for a JAX-RS compliant restful resource. Below are the success and failure scenarios.
Success Scenario :- ResourceConverter converter = new ResourceConverter(User.class); User.class will be read dynamically from JAX-RS MessageBodyReader and I am able to conver raw response to java resource
Failure Scenarion : ResourceConverter converter = new ResourceConverter(User.class,Status.class); Through jax-rs messagebodyreader it is difficult to read multiple object types (which are related each other).
Hence trying to understand json api converter is compatible with jax-rs based frameworks.