Discussion:
Generating WADL with multiple mediaTypes per Response
cwbynum
2012-01-10 23:26:29 UTC
Permalink
The WADL generated doesn't include more than one mediaTypes when I try to
include the representations. How do I specify the Json mediaType for the
various representations? I tried duplicating the line as well as using {}
but no luck.

/**
* Returns the specified photo for the user if found.
*
* @response.representation.400.qname
{https://www.example.com/mml/v1}status
* @response.representation.400.mediaType
application/vnd.example.mml.status-v1+xml
*
* @response.representation.404.qname
{https://www.example.com/mml/v1}status
* @response.representation.404.mediaType
application/vnd.example.mml.status-v1+xml
*
* @response.representation.200.qname
{https://www.example.com/mml/v1}photo
* @response.representation.200.mediaType
application/vnd.example.mml.photo-v1+xml
* @response.representation.200.example {@link Examples#SAMPLE_PHOTO}
*/
@GET
@Produces({"application/vnd.example.mml.photo-v1+xml",
"application/vnd.example.mml.photo-v1+json"})



--
View this message in context: http://jersey.576304.n2.nabble.com/Generating-WADL-with-multiple-mediaTypes-per-Response-tp7174252p7174252.html
Sent from the Jersey mailing list archive at Nabble.com.

Loading...