Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a public website that converts swagger json to PDF for HTML?

Tags:

pdf

swagger

Has anyone made where, where you just enter your swagger URL .../swagger/docs/v1 and then the website converts it to HTML, pdf, doc or whatever in a nice readable format? I'd think that site would get a lot of traffic (hint)

I know there are some things on github you can download that will convert things, but I'd think someone has made a public site so I can save some time.

like image 586
Dan Parker Avatar asked Nov 26 '15 16:11

Dan Parker


2 Answers

You can use this website : Swagger Editor Copy your swagger file and in the menu, select 'Generate Client' -> 'HTML' (or Dynamic HTML')

You can also use Swagger Code Generator if you want to add this step in an automatic build flow.

like image 184
Nelson G. Avatar answered Oct 10 '22 00:10

Nelson G.


Try this one: swagger2html .

The document generated by swagger-codegen is indeed not readable. This project makes a neat appearance(bootstrap css) and shows the fields in the request/response models in a straightforward manner.

sample image

like image 20
Jian Chen Avatar answered Oct 10 '22 01:10

Jian Chen