def get_endpoint(svc):
    """
    Given a service object, return a formatted
    URL of the service.
    """
    return f"{svc.get('protocol')}://{svc.get('host')}:{svc.get('port','80')}{svc.get('path','/')}"