Allow passing in of API service endpoint URL.