def resource(self, *urls, **kwargs):
        def decorator(cls):
            self.add_resource(cls, *urls, **kwargs)
            return cls
        return decorator
Wraps a :class:`~flask_restful.Resource` class, adding it to the
dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/__init__.py/Api.resource