Replies: 1 comment 4 replies
-
Just as an FYI RESTEasy 4.7.x and WildFly 26 will no longer receive updates. That said, have a look at https://docs.jboss.org/resteasy/docs/4.7.7.Final/userguide/html/Built_in_JAXB_providers.html#JAXB_Collections. What you likely want, assuming you can change the source, is the |
Beta Was this translation helpful? Give feedback.
4 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.
-
I am trying to migrate an existing application to RestEasy, running on WF 26. The existing application has many endpoint returning collections. The root for these collections is renamed to the plural of the single item when serializing to XML.
For example, assuming the return type is List, we get the XML response something like:
<books> <book>...</book> </books>
This behavior must be retained with RestEasy. However, RestEasy, serializes the collection with the root . For the above example, we end up with:
<collection> <book>...</book> </collection>
I was not able to find the exact Provider in Jersey or the equivalent Provider in RestEasy responsible for this feature. Is there a way to activate similar feature to obtain the same expected results ?
Beta Was this translation helpful? Give feedback.
All reactions