Updated API to be more RESTful