i'm new in rest and confuse about http methods like get,post,put,delete,option,head can any one please share me simple example.
here is my example:
@GET 
    @Produces("text/plain")
    public String getIt() {
        return "Hi there!";
    }
    @DELETE
    @Produces("text/plain")
    @Path("/getItDelTest")
    public String getItDelTest()
    {
        return "Hi there is getITDelTest method";
    }
    @HEAD
    @Produces("text/plain")
    @Path("/getItHeadTest")
    public String getItHeadTest()
    {
        return "Hi there is getITHeadTest method";
    }
    @PUT
    @Produces("text/plain")
    @Path("/getItPutTest")
    public String getItPutTest()
    {
        return "Hi there is getITPutTest method";
    }
    @POST
    @Produces("text/plain")
    @Path("/getItPost")
    public String getItPost()
    {
        return "Hi there is getItPost method";
    }
above this example i'm just create a simple method with diffrent-2 nature but i don't understand why we need all that if we able to do all these action with post
 
     
    