flask swagger:用于烧瓶的swagger 2.0规格提取器 源码
摇摇欲坠 适用于Flask的Swagger 2.0规格提取器 现在,您可以为yml文件指定基本路径: app = Flask ( __name__ ) @ app . route ( "/spec" ) def spec (): base_path = os . path . join ( app . root_path , 'docs' ) return jsonify ( swagger ( app ), from_file_keyword = "swagger_from_file" , base_path = base_path ) 并使用相对路径: @ app . route ( '/test' , methods = [ 'POST' ]) def login (): """ swagger_from_file: test.yml "
用户评论