Skip to content

Http methods

Ahmad K. Bawaneh edited this page Dec 28, 2019 · 2 revisions

Http methods

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 in 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 any body presented in the request or service definition.