I am creating restful web service and i wanted to know how do we create a service with input parameters and also how to invoke it from a web browser.
For example
If you want query parameters, you use @QueryParam.
public Todo getXML(@QueryParam("summary") String x,
@QueryParam("description") String y)
But you won't be able to send a PUT from a plain web browser (today). If you type in the URL directly, it will be a GET.
Philosophically, this looks like it should be a POST, though. In REST, you typically either POST to a common resource, /todo, where that resource creates and returns a new resource, or you PUT to a specifically-identified resource, like /todo/, for creation and/or update.