I have an jax-rs endpoint as below. I need to post a message to a web page through this endpoint. When I execute the endpoint using a client the method with @GET executes. But the method with @POST does not execute. I need to know when will be the @POST method will execute. What should I do to invoke the @POST method.
@GET
@Path("/")
@Produces("text/plain")
public boolean getLoginStatus(@Context HttpServletRequest request) throws URISyntaxException {
return true;
}
@POST
@Path("/")
public boolean helloPost() {
return true;
}