<div>
                    Maybe make use of custom media types on controller?&nbsp;<a href="https://github.com/aerogear/aerogear-controller-demo/blob/master/src/main/java/org/jboss/aerogear/controller/demo/config/CustomMediaTypeResponder.java">https://github.com/aerogear/aerogear-controller-demo/blob/master/src/main/java/org/jboss/aerogear/controller/demo/config/CustomMediaTypeResponder.java</a>&nbsp;to render JSON as "plain text"?</div><div><br></div><div>Or gently open a feature request to include it on controller :)</div><div><br></div><div>About it be convenient…well..it's a matter of taste. cURL never lies :)</div>
                <div><div><br></div><div><br></div><div><div>--&nbsp;</div><div>"The measure of a man is what he does with power" - Plato</div><div>-</div><div>@abstractj</div><div>-</div><div>Volenti Nihil Difficile</div></div></div>
                 
                <p style="color: #A0A0A8;">On Thursday, March 28, 2013 at 7:03 AM, Matthias Wessendorf wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Using the browser to directly access (GET) endpoints is usally (at</div><div>least for me) a very convenient way to quickly check things.</div><div>With the controller, when the RESTFul endpoint is configured to</div><div>consume "JSON", a URL like this (in the browser)</div><div><br></div><div><a href="http://localhost:8080/scaffoldtester/customers">http://localhost:8080/scaffoldtester/customers</a></div><div><br></div><div>returns 404</div><div><br></div><div><br></div><div>However, with curl (curl -v -H "Accept: application/json" -H</div><div>"Content-type: application/json" -X GET</div><div><a href="http://localhost:8080/scaffoldtester/customers/">http://localhost:8080/scaffoldtester/customers/</a>)</div><div>It works since we explicitly specifiy the application/json</div><div><br></div><div>I wonder.... if there could be a nicer way, to allow JSON, and the</div><div>TEXT/HTML - without adding more concumes() ?</div><div><br></div><div>Not sure - just a thought ...</div><div><br></div><div>-- </div><div>Matthias Wessendorf</div><div><br></div><div>blog: <a href="http://matthiaswessendorf.wordpress.com">http://matthiaswessendorf.wordpress.com</a>/</div><div>sessions: <a href="http://www.slideshare.net/mwessendorf">http://www.slideshare.net/mwessendorf</a></div><div>twitter: <a href="http://twitter.com/mwessendorf">http://twitter.com/mwessendorf</a></div><div>_______________________________________________</div><div>aerogear-dev mailing list</div><div><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></div><div><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>