added REST functionalities