Open derekm opened 6 years ago
We discussed this on the September 12 meeting - here are the minutes for this item:
New issue: 117 - this might be a complicated scenario - might need some sort of “multi-purpose” annotation to indicate that the parameter could be a @BeanParam or an entity…
- May not make sense if not currently supported on server side yet
I think this is a good idea, but may need to wait until a later release.
Thanks for opening this issue! Andy
Allow objects to work with JAXB/JSON-B &
@BeanParam
.Allowing dual-use POJOs helps unify JAX-RS resource definitions.
Consider two services, a
GET
and aPOST
. In order to support both JSON/XML and x-www-form-urlencoded, twoPOST
definitions are currently needed (in recent version of Jersey). E.g.,Additional information is available in this old Jersey PR to unify Jersey's date parsing in support of unified JAXB xml/json & BeanParam form objects: https://github.com/jersey/jersey/pull/94