editing swift endpoint url