Given this example:
---cut here---
@XmlRootElement(name="item")
public class Value {
public int id;
}
@Path("/list")
public class Lister {
@GET
public List<Value> values() {
return
Collections.singletonList(new Value());
}
}
---cut here---
I expected the returned list to have its outermost tag set to "items"
but I get:
<values>
<item>
<id>0</id>
</item>
</values>
Is there a way to change that "values" to "items" ?
Thank you!
Moises