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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -