Made API RESTful