api-explorer icon indicating copy to clipboard operation
api-explorer copied to clipboard

Allow to set widget tabs per API

Open cguedes opened this issue 8 years ago • 0 comments

The current implementation only allows setting custom tabs globally. It would be nice to customize those per API.

APIExplorer
  .addAPI('petstore', 'swagger2', 'https://api.swaggerhub.com/apis/anil614sagar/petStore/1.0.0', c => {
    c.addWidgetTab('Only For Petstore', APIExplorer.PetstoreTabWidget)   // <-- this is the new configuration
  })
  .addWidgetTab('Global', APIExplorer.GlobalTabWidget)
  .start()

cguedes avatar Sep 23 '16 07:09 cguedes