@staticmethod
def clean(d):
    """Clean the parameter dict for endpoint semantics"""
    n = {}
    for k, v in d.items():
        if v == None or v == False:
            continue
        elif v == True:
            n[k] = ''
        else:
            n[k] = v
    return n
