Setting a default endpoint url if one is not provided.