Search code examples
pdfswagger-ui

Generate PDF from Swagger API documentation


I have used the Swagger UI to display my REST webservices and hosted it on a server.

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.

Many thanks!


Solution

  • I figured out a way using https://github.com/springfox/springfox and https://github.com/RobWin/swagger2markup

    Used Swagger 2 to implement documentation.