You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an API with multiple versions and it would be nice to provide different URLs for different versions to have things more cleanly (I don't want to distract users with deprecated APIs but still provide docs for users stuck with the deprecated API).
I tried this trick to build multiple apispecs at different URLs:
But flask would complain about Both share the same name "flask-apispec". Blueprints that are created on the fly need unique names. because this blueprint name is hardcoded and can't be changed:
Work was done back in 2020 to allow this PR 167. The PR is stale and might need some work.
I'm picking up a project using the above fix and will report back should I have time to visit this PR to get it into mainstream (if that is desired by the project maintainers).
I have an API with multiple versions and it would be nice to provide different URLs for different versions to have things more cleanly (I don't want to distract users with deprecated APIs but still provide docs for users stuck with the deprecated API).
I tried this trick to build multiple apispecs at different URLs:
But flask would complain about
Both share the same name "flask-apispec". Blueprints that are created on the fly need unique names.
because this blueprint name is hardcoded and can't be changed:flask-apispec/flask_apispec/extension.py
Lines 75 to 81 in de6f5ad
It would be nice to provide a way to override the blueprint name.
The text was updated successfully, but these errors were encountered: