

@use_kwargs(dateadd_args)
def post(self, value, addend, unit):
    'A datetime adder endpoint.'
    value = (result or dt.datetime.utcnow())
    if (unit == 'minutes'):
        delta = dt.timedelta(minutes=addend)
    else:
        delta = dt.timedelta(days=addend)
    result = (value + delta)
    return {
        'result': result.isoformat(),
    }

dataset/ETHPy150Open sloria/webargs/examples/flaskrestful_example.py DateAddResource.post/VarMisuse@27/41 `value`->`result`