1.0.5 • Published 7 years ago

swagger-ui-min v1.0.5

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

swagger-ui-min

what?

This is a genuinely local-dependency free version of Swagger UI.

It's a single index.html with most dependencies loaded from cdnjs.com.

You can simply serve up index.html as a static file then point your users at <path/to/index.html>?url=<your/swagger.json>.

how?

why?

  • this package is 4.4KB (swagger-ui is 5.7MB)
  • single file, no need to serve all swagger-ui assets

caveats

no OAuth

This is the only major feature missing. The swagger-ui JS bundle might have it but I didn't have time to check so commented out the initOAuth call. See index.html#L102

minor missing features

Some minor features are also missing in this version:

  • no favicon for the page (couldn't care less)
  • no print.css (seriously, who prints this?)
  • no translation support
  • syntax highlight only for JSON and XML

embedded dependencies (not found on cdnjs):

I embedded the following scripts on the page (as they weren't on cdnjs):

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago