#NEWLINE# def resource( self , * urls , **kwargs ) : #NEWLINE# #INDENT# "Wraps a :class:`~flask_restful.Resource` class, adding it to the\n        api. Parameters are the same as :meth:`~flask_restful.Api.add_resource`.\n\n        Example::\n\n            app = Flask(__name__)\n            api = restful.Api(app)\n\n            @api.resource('/foo')\n            class Foo(Resource):\n                def get(self):\n                    return 'Hello, World!'\n\n        " #NEWLINE# def decorator( cls ) : #NEWLINE# #INDENT# self . add_resource ( cls , * urls , ** kwargs ) #NEWLINE# return cls #NEWLINE# #UNINDENT# return kwargs