Dan Parker
Dan Parker

Reputation: 843

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

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.

Upvotes: 8

Views: 20475

Answers (2)

Jian Chen
Jian Chen

Reputation: 596

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

Upvotes: 4

Nelson G.
Nelson G.

Reputation: 5441

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.

Upvotes: 8

Related Questions