我是 python 新手。我已将 Flask-Restless (0.17.0) 用于 python2.7 应用程序。
像这样创建 API 后:
manager = flask_restless.APIManager(app, flask_sqlalchemy_db=db)
manager.create_api(Roles, page_size=0, methods=['GET'])
它显示以下错误:
File "server.py", line 146, in <module>
manager.create_api(XXXX, page_size=0, methods=['GET'])
File "/usr/local/lib/python2.7/dist-packages/flask_restless/manager.py", line 698, in create_api
blueprint = self.create_api_blueprint(app=app, *args, **kw)
TypeError: create_api_blueprint() got an unexpected keyword argument 'page_size unable to load app 0 (mountpoint='') (callable not found or import error)