<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 2 Sep,2014, at 9:27 , tolis emmanouilidis <<a href="mailto:tolisemm@gmail.com">tolisemm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Eric,<div><br></div><div>I have tried the jax-rs @Produces annotation both at method and class levels as shown here (<a href="http://docs.oracle.com/cd/E19798-01/821-1841/gipzh/index.html">http://docs.oracle.com/cd/E19798-01/821-1841/gipzh/index.html</a>) and it works for me. I don't have to specify the Content-Type header in the request.The resource method or endpoint is chosen according the Accept header.</div>
<div><br></div></div></blockquote><div><br></div><div>You are right, I must have done something wrong.</div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>class level</div><div><br></div><div><div>@Path("/members")</div><div>@RequestScoped</div><div>@Produces({"application/vnd.aerogear.v102+json"})</div><div>public class MemberResourceRESTServiceV102 {</div>
</div><div><br></div><div><div>@Path("/members")</div><div>@RequestScoped</div><div>@Produces({"application/vnd.aerogear.v101+json"})</div><div>public class MemberResourceRESTService {</div></div><div>
<br></div></div></blockquote></div><br><div>So this is also an option of doing it, what option do you like the best?</div><div><br></div><div>Cheers,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Erik Jan</div></body></html>