Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Registering Multiple Api to the Same App #206

Open
cancan101 opened this issue Jul 24, 2018 · 1 comment
Open

Prevent Registering Multiple Api to the Same App #206

cancan101 opened this issue Jul 24, 2018 · 1 comment

Comments

@cancan101
Copy link
Contributor

The following should probably not be allowed:

api_v1 = Api(app, '/api/v1')
api_v2 = Api(app, '/api/v2')

even though it can be done now. The issue is that each Api registers itself with the app and error handlers.

@taion
Copy link
Contributor

taion commented Jul 24, 2018

What happens if you try to register e.g. two Flask-SQLAlchemy extensions to the same app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants