Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Allow to set widget tabs per API #147

Open
cguedes opened this issue Sep 23, 2016 · 0 comments
Open

Allow to set widget tabs per API #147

cguedes opened this issue Sep 23, 2016 · 0 comments

Comments

@cguedes
Copy link
Contributor

cguedes commented Sep 23, 2016

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()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants