文件名称:flask-swagger:用于烧瓶的swagger 2.0规格提取器
文件大小:12KB
文件格式:ZIP
更新时间:2024-03-21 11:28:06
Python
摇摇欲坠 适用于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 "
【文件预览】:
flask-swagger-master
----setup.py(2KB)
----.gitignore(675B)
----MANIFEST.in(21B)
----LICENSE(1KB)
----build_swagger_spec.py(2KB)
----examples()
--------user_put.yml(364B)
--------example.py(4KB)
----README.md(8KB)
----flask_swagger.py(8KB)
----README(5KB)