2.0.1 • Published 1 year ago

swagger-ui-customization v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Swagger UI Customization

Customizes the Swagger UI with a version selector and allows you to track API version changes by adding colored tags to operations. Also automatically expands spoilers for convenience.

Usage

To apply the customization, follow these two steps:

  1. Import setupSwaggerCustomization in the Swagger configuration file:

    import setupSwaggerCustomization from 'swagger-ui-customization';
  2. Specify the array of versions in swaggerOptions to define which API versions will be displayed in the version selector. Set the setupSwaggerCustomization function to the onComplete configuration of Swagger:

    swaggerOptions: {
        versions: [1, 2, 3]
        onComplete: setupSwaggerCustomization,
      },

Example Screenshots

Example 1 Example 2

2.0.1

1 year ago

2.0.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago