removing unneeded methods and adding one to make RESTful API call