Adding rest base controller.