http methods in rest api