def __init__(self, app=None, prefix='', decorators=None, response=None):
        """Create and API consisting of one or more resources.

        :param app: the Flask application or blueprint object
        :type app: :class:`~flask.Flask` or :class:`~flask.Blueprint`
        :param prefix: Prefix all routes with a value, eg /v1 or /2015-01-01
        :type prefix: str
        :param decorators: Decorators to attach to every resource
        :type decorators: list
        :param response: `ApiResponse` object, default JSONResponse()
        :type response: `ApiResponse`
        """
        self.app = None
        self.blueprint = None
        self.blueprint_setup = None
        self.prefix = prefix
        self.resources = []
        self.endpoints = set()
        self.decorators = decorators if decorators else []
        self.responder = response if response else JSONResponse()

        if app is not None:
            self.app = app
            self.init_app(app)
def __init__ ( self , app = None , prefix = '' , decorators = None , response = None ) : self . app = None self . blueprint = None self . blueprint_setup = None self . prefix = prefix self . resources = [ ] self . endpoints = set ( ) self . decorators = decorators if decorators else [ ] self . responder = response if response else JSONResponse ( ) if app is not None : self . app = app self . init_app ( app )
Create and API consisting of one or more resources.

        :param app: the Flask application or blueprint object
        :type app: :class:`~flask.Flask` or :class:`~flask.Blueprint`
        :param prefix: Prefix all routes with a value, eg /v1 or /2015-01-01
        :type prefix: str
        :param decorators: Decorators to attach to every resource
        :type decorators: list
        :param response: `ApiResponse` object, default JSONResponse()
        :type response: `ApiResponse`