Making the API more RESTful