This package has been deprecated

Author message:

please use swagger-ui 3 instead

swagger-ui-min

1.0.5 • Public • Published

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):

Readme

Keywords

none

Package Sidebar

Install

npm i swagger-ui-min

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • csabapalfi