set service api in controller