jfinkels / flask-restless

NO LONGER MAINTAINED - A Flask extension for creating simple ReSTful JSON APIs from SQLAlchemy models.
https://flask-restless.readthedocs.io
GNU Affero General Public License v3.0
1.02k stars 301 forks source link

Blueprint view function name should not contain dots #686

Open kenfehling opened 6 years ago

kenfehling commented 6 years ago

Using version 1.0.0b1 when trying to call create_api_blueprint I get

File "/opt/conda/lib/python3.6/site-packages/flask_restless/manager.py", line 715, in create_api_blueprint view_func=relationship_api_view) File "/opt/conda/lib/python3.6/site-packages/flask/blueprints.py", line 206, in add_url_rule assert '.' not in view_func.name, "Blueprint view function name should not contain dots" AssertionError: Blueprint view function name should not contain dots

kenfehling commented 6 years ago

Update: When I force my version of flask to be 0.12.4 or lower this error goes away. It must be some incompatibility with Flask 1.0

codingedward commented 6 years ago

This is due to a change made on Flask 1.0, here https://github.com/pallets/flask/pull/2450.

TheRealFalcon commented 6 years ago

Are there any workarounds, or is 1.0.0b1 just currently not compatible with flask 1.0?

mrevutskyi commented 4 years ago

Hi, there is a fork project Flask-Restless-NG that has this issue fixed