从Swagger API文档生成PDF [英] Generate PDF from Swagger API documentation
问题描述
我已经使用Swagger UI来显示我的REST Web服务并将其托管在服务器上.
I have used the Swagger UI to display my REST webservices and hosted it on a server.
但是,只能在特定服务器上访问Swagger的此服务.如果我想脱机工作,有人知道如何使用Swagger UI创建静态PDF并使用它吗?此外,PDF易于与无法访问服务器的人员共享.
However this service of Swagger can only be accessed on a particular server. If I want to work offline, does anybody know how I can create a static PDF using the Swagger UI and work with it? Additionally a PDF is easy to share with people who don't have access to the server.
非常感谢!
推荐答案
我想出了一种使用 https://的方法github.com/springfox/springfox 和 https://github.com/RobWin/swagger2markup
I figured out a way using https://github.com/springfox/springfox and https://github.com/RobWin/swagger2markup
使用Swagger 2来实现文档.
Used Swagger 2 to implement documentation.
这篇关于从Swagger API文档生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!