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:
- Hide empty tags
- Disable "try it out" (as an alternative to the "supportedSubmitMethods" configuration option)
- Disable "try it out" for OpenAPI 3.0 definitions without "servers"
Hope this helps!