[Dev] Customizing default swagger-ui 3.x

2017-12-05 Thread Thilini Shanika
Hi, We are currently in the process of upgrading swagger-ui 3.x in API Manager and we need to disable some of the components shipped with default swagger UI. Basically, we need to disable the components like top bar, API information, authorization button, schemas and models at the bottom of the sw

Re: [Dev] Customizing default swagger-ui 3.x

2017-12-05 Thread Praminda Jayawardana
Hi Thilini, You can add a plugin in plugins section to remove these components. Ex: function { return { components: { Models: function() { return null }, schemes: function() { return null }, authorizeBtn: func

Re: [Dev] Customizing default swagger-ui 3.x

2017-12-05 Thread Thilini Shanika
Thanks Praminda. It worked for me. On Wed, Dec 6, 2017 at 9:36 AM, Praminda Jayawardana wrote: > Hi Thilini, > > You can add a plugin in plugins section to remove these components. > > Ex: > function { > return { > components: { > Models: functio