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
swagger console. Is it possible to disable them? We used following code
snippet to embed swagger UI into the API detail page and what are the
changes to be applied in order to disable above-mentioned components?
const ui = SwaggerUIBundle({
url: "<%=swaggerAPI%>",
dom_id: '#swagger-ui-container',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
})
window.ui = ui
--
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3
E-mail: [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev