3.1.0 • Published 4 years ago

swagger-ui-plugin-pretty-json-view v3.1.0

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

Pretty JSON View Plugin for Swagger UI

npm

This Plugin utilizes react-json-view to add the ability to view response JSON in pretty format with other cool features.

Usage

There are two ways to utilize this plugin

Via npm

Install the module with npm:

$ npm install --save swagger-ui-plugin-pretty-json-view

Next, require it in your client-side application:

const PrettyJSONViewPlugin = require('swagger-ui-plugin-pretty-json-view');

SwaggerUI({
  // your options here...
  plugins: [
    // other plugins
    PrettyJSONViewPlugin
  ]
})  
Via unpkg
<script>
<!-- Load Swagger UI -->
<script src="https://unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"></script> 
<!-- Load the PrettyJSONViewPlugin -->
<script src="https://unpkg.com/swagger-ui-plugin-pretty-json-view/umd"></script>

<script>
window.onload = function() {
  SwaggerUI({
  // your options here...
  plugins: [
    // other swagger-ui plugins
    PrettyJSONViewPlugin
  ]
})
}
</script>

Contributing

Feel free to open issues and pull requests that fix bugs and add functionality.

3.1.0

4 years ago

2.3.0

4 years ago

2.4.0

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago