Rest API Class