diff --git a/app/__init__.py b/app/__init__.py index 64fbf94..0e6f678 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,6 +1,6 @@ from flask import Flask, jsonify from flask_sqlalchemy import SQLAlchemy -from flask_restplus import Api +from flask_restx import Api db = SQLAlchemy() diff --git a/app/fizz/fizzbar/controller.py b/app/fizz/fizzbar/controller.py index dc3b379..1c72b7e 100644 --- a/app/fizz/fizzbar/controller.py +++ b/app/fizz/fizzbar/controller.py @@ -1,6 +1,6 @@ from flask import request from flask_accepts import accepts, responds -from flask_restplus import Namespace, Resource +from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List diff --git a/app/fizz/fizzbaz/controller.py b/app/fizz/fizzbaz/controller.py index 62c0337..472357e 100644 --- a/app/fizz/fizzbaz/controller.py +++ b/app/fizz/fizzbaz/controller.py @@ -1,6 +1,6 @@ from flask import request from flask_accepts import accepts, responds -from flask_restplus import Namespace, Resource +from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List diff --git a/app/other_api/__init__.py b/app/other_api/__init__.py index 4312513..67e432d 100644 --- a/app/other_api/__init__.py +++ b/app/other_api/__init__.py @@ -3,7 +3,7 @@ BASE_ROUTE = "other_api" def register_routes(api, app, root="api"): from flask import Blueprint - from flask_restplus import Api + from flask_restx import Api bp = Blueprint("other_api", __name__) api = Api(bp, title="Another API with separate Swagger docs", version="0.1.0") diff --git a/app/other_api/doodad/controller.py b/app/other_api/doodad/controller.py index 56e865d..c5284da 100644 --- a/app/other_api/doodad/controller.py +++ b/app/other_api/doodad/controller.py @@ -1,6 +1,6 @@ from flask import request from flask_accepts import accepts, responds -from flask_restplus import Namespace, Resource +from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List diff --git a/app/other_api/whatsit/controller.py b/app/other_api/whatsit/controller.py index dfc8eb8..5190803 100644 --- a/app/other_api/whatsit/controller.py +++ b/app/other_api/whatsit/controller.py @@ -1,6 +1,6 @@ from flask import request from flask_accepts import accepts, responds -from flask_restplus import Namespace, Resource +from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List diff --git a/app/third_party/app/__init__.py b/app/third_party/app/__init__.py index 84a41ec..76496ad 100644 --- a/app/third_party/app/__init__.py +++ b/app/third_party/app/__init__.py @@ -1,7 +1,7 @@ def create_bp(env=None): from flask import Blueprint, jsonify from flask_sqlalchemy import SQLAlchemy - from flask_restplus import Api, Resource, Namespace + from flask_restx import Api, Resource, Namespace bp = Blueprint("Example third party API", __name__) api = Api(bp, title="Flaskerific API", version="0.1.0") diff --git a/app/widget/controller.py b/app/widget/controller.py index 364f0ee..5d0478d 100644 --- a/app/widget/controller.py +++ b/app/widget/controller.py @@ -1,6 +1,6 @@ from flask import request from flask_accepts import accepts, responds -from flask_restplus import Namespace, Resource +from flask_restx import Namespace, Resource from flask.wrappers import Response from typing import List diff --git a/requirements.txt b/requirements.txt index 689f14b..961e73e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,3 +21,4 @@ pytz==2019.2 six==1.12.0 SQLAlchemy==1.3.6 Werkzeug==0.15.5 +flask-restx==0.1.0