Change way we set api endpoint values to accomodate setting them in an external config.