We can set the http request method on a service method using one of the JaxRs annotations :
@GET, @POST, @PUT, @PATCH, @DELETE, @HEAD, @OPTIONS.
If none of these annotations is present on the service method definition then it is considered GET by default, and only @POST, @PUT, @PATCH will allow sending a body in the request while the other will ignore the body presented in the request or service definition.