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

Implement user facing interface for ConnexionMiddleware #1621

Merged
merged 3 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions connexion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

import werkzeug.exceptions as exceptions # NOQA

from .apis import AbstractAPI # NOQA
from .apps import AbstractApp # NOQA
from .apps.async_app import AsyncApp
from .apps.asynchronous import AsyncApp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, you can't name a file async.py 😢

from .datastructures import NoContent # NOQA
from .exceptions import ProblemException # NOQA
from .problem import problem # NOQA
Expand All @@ -21,14 +20,14 @@
try:
from flask import request # NOQA

from connexion.apis.flask_api import FlaskApi # NOQA
from connexion.apps.flask_app import FlaskApp
from connexion.apps.flask import FlaskApi, FlaskApp
except ImportError as e: # pragma: no cover
_flask_not_installed_error = not_installed_error(e)
FlaskApi = _flask_not_installed_error # type: ignore
FlaskApp = _flask_not_installed_error # type: ignore

from connexion.apps.async_app import AsyncApi, AsyncApp, ConnexionMiddleware
from connexion.apps.asynchronous import AsyncApi, AsyncApp
from connexion.middleware import ConnexionMiddleware

App = FlaskApp
Api = FlaskApi
Expand Down
16 changes: 0 additions & 16 deletions connexion/apis/__init__.py

This file was deleted.

219 changes: 0 additions & 219 deletions connexion/apis/abstract.py

This file was deleted.

100 changes: 0 additions & 100 deletions connexion/apis/flask_api.py

This file was deleted.

Loading