rest - Call RESTful web service running on glassfish -
a newbie question:
i following tutorial here http://netbeans.org/kb/docs/websvc/rest.html , have code this:
@get @path("{id}") @produces( { "application/xml", "application/json" }) public customer find(@pathparam("id") integer id) { return super.find(id); } it works , accept url this:http://localhost:8080/myjson/resources/entities.customer/1 want take url this:http://localhost:8080/myjson/resources/entities.customer?id=1
how do that?
Comments
Post a Comment