[apiService] created a service for getting the API URL