@use_kwargs(dateadd_args)
    def post(self, value, addend, unit):
        """A datetime adder endpoint."""
        value = value 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()}

# This error handler is necessary for usage with Flask-RESTful
dataset/ETHPy150Open sloria/webargs/examples/flaskrestful_example.py/DateAddResource.post/original