get put post delete methods in rest api