Forum Discussion

playmoo's avatar
playmoo
New Contributor
5 years ago

How to find the full documentation API for SwggerUI ?

How can i find the whole documentation for swagger. For example i have a plugin like that:

 

return {

  statePlugins: {

       spec:  {

           wrapSelectors: {

                ........

          }

     }

  }

}

 

So my question basically is, where to find the full list of object properties that "wrapSelectors" provides for example? I really find it difficult to find and i dont know where to look for it, any help would be great.

  • Hi playmoo,

     

    To find the list of available selectors that can be used in wrapSelectors, go to https://petstore.swagger.io, open the browser console, and evaluate

     

    ui.specSelectors

     

     

    I agree that the plugin development docs are not very clear and could definitely be improved.

     

    For the reference, here are some sample plugins what use wrapSelectors:

    Hope this helps!

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi playmoo,

     

    To find the list of available selectors that can be used in wrapSelectors, go to https://petstore.swagger.io, open the browser console, and evaluate

     

    ui.specSelectors

     

     

    I agree that the plugin development docs are not very clear and could definitely be improved.

     

    For the reference, here are some sample plugins what use wrapSelectors:

    Hope this helps!