[英]What is the simplest way to create python flask swagger
I have written python
program with some flask rest
logic, and I want to know what is the easiest way to create flask swagger
from it? I have written
python
program with some flask rest
logic, and I want to know what is the easiest way to create flask swagger
from it? I saw many tutorials with different packages
but in my opinion they include too much manual work.我看到了许多包含不同
packages
的教程,但在我看来,它们包含了太多的手动工作。 Is there a package
which does in 1 or 2 steps?是否有一个
package
可以分 1 步或 2 步完成?
I don't think there are any fully automated approaches that you can just apply after-the-fact.我认为没有任何完全自动化的方法可以在事后应用。 I suspect that for Flask the best you can do is something like Flask-RESTPlus .
我怀疑对于 Flask 你能做的最好的事情就是像Flask-RESTPlus 。 But there are, as you say, others.
但正如你所说,还有其他人。
Side note: I have myself switched from using Flask to using FastAPI instead, partly because it has OpenAPI specification (aka Swagger) support built in, but it has some other nifty features too.旁注:我自己已经从使用 Flask 改为使用FastAPI ,部分原因是它内置了 OpenAPI 规范(又名 Swagger)支持,但它也有一些其他漂亮的功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.