2.1.1 • Published 7 years ago

swagger-ui-cornify v2.1.1

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

npm version

swagger-ui-cornify

Cornify plugin for Swagger-UI v3.

This is a lighthearted example of how to create an external plugin for Swagger-UI. This project has a minimal Webpack build pipeline that creates bundles for browser consumption.

The plugin is available on npm as swagger-ui-cornify, and minified release copies are attached to each GitHub Release.

If you use the script directly, the module will be exposed on the global scope as SwaggerUICornify.

How to use

Load this plugin (either through npm or directly), and provide it to Swagger-UI when you call it:

SwaggerUI({
  url: "http://petstore.swagger.io/v2/petstore.yaml",
  plugins: [
    SwaggerUICornify
  ]
})

If/when the API definition you're viewing contains an x-cornify: true statement, magic will happen.

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

2.0.0-beta.2

7 years ago

2.0.0-beta.1

7 years ago

2.0.0-beta.0

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