def param_value(val):
    while isinstance(val, Parameter):
        val = val.value
    return val
Calls the index endpoint and returns it's api response
dataset/ETHPy150Open xraypy/xraylarch/lib/fitting/parameter.py/param_value--crossover with--dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/endpoints.py/VirtualEndpoint.generate_api_response