Implemented basic functionality for REST API