【若依(ruoyi)】swagger 生成接口文档
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                【若依(ruoyi)】swagger 生成接口文档
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                前言
- 若依(ruoyi): v4.3
若依自帶了 swagger 的接口。
 將若依啟動后,訪問 http://localhost/swagger-ui.html (或者使用菜單系統工具 -> 系統接口)可以查看接口。
 
將若依啟動后,訪問 http://localhost/v2/api-docs 可以查看 json 格式的接口文檔。
 
 一切都很不錯,只是要有個 html 或 pdf 格式的接口文檔就更好了。
更好的 html 或 pdf 格式的接口文檔
要生成更好的 html 或 pdf 格式的接口文檔需要用到 swagger2pdf 項目。
生成的步驟是這樣的:
操作
結果展示
參考
https://github.com/Swagger2Markup/spring-swagger2markup-demo
 https://leongfeng.github.io/2017/02/20/springboot-springfox-swagger2markup-spring-restdoc/
https://gitee.com/nitianziluli/swagger2pdf
 https://github.com/nitianziluli/swagger2pdf
 https://blog.csdn.net/u013719669/article/details/80998225
總結
以上是生活随笔為你收集整理的【若依(ruoyi)】swagger 生成接口文档的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 金士顿 FURY Beast 系列 DD
- 下一篇: 再降 20 元:华为 nova 11 S
