Made RESTful API work