from flask import Flask,jsonify,make_response,abort,Response,request from flask_restful import Api,Resource,reqparse from flask_httpauth import HTTPBasicAuth app = Flask(__name__) api = Api(app=app) auth = HTTPBasicAuth() #认证通过 @auth.get_password def…