fix api_endpoint format no base_url