简体   繁体   中英

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 saw many tutorials with different packages but in my opinion they include too much manual work. Is there a package which does in 1 or 2 steps?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM