add rest service to controller