I have created a RestfulWeb Service in Java that is working well with GET requests. However I cannot find some good resource on how to make it accept POST requests.
This is how I run GET
@Path("/hello")
public class Hello {
    @GET
    @Path(value = "/ids/{id}")
    public String ids(@PathParam(value = "id") final String id) throws JSONException {
        return getResults("select * from " + id);
    }
In order to access this method from web I just go to mywebservice.com/hello/thisismyID and the method receives the "ID".
How would this look if it was to be done with a POST.
Thanks in advance,
-D
 
     
    