starting api service before making requests