Update to use flask-restx

This commit is contained in:
Alan Pryor
2020-01-22 11:05:43 -06:00
parent e7d4e70445
commit 25bc34a38f
9 changed files with 9 additions and 8 deletions

View File

@@ -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")

View File

@@ -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

View File

@@ -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