Some checks failed
Node.js CI / build (push) Failing after 2s
Node.js CI / e2e-tests (+(a11y|security|bugs)/**/*cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/!(o|d|m)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/+(o|d)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/m*.cy.js) (push) Failing after 2s
CodeQL / Analyze (javascript) (push) Failing after 2m49s
Security scan for docker image / build (push) Failing after 54s
34 lines
951 B
JavaScript
Executable File
34 lines
951 B
JavaScript
Executable File
/* eslint-disable no-undef */
|
|
window.onload = function() {
|
|
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
|
|
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
|
|
// Build a system
|
|
const ui = SwaggerUIBundle({
|
|
url: "https://petstore.swagger.io/v2/swagger.json",
|
|
dom_id: "#swagger-ui",
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIStandalonePreset
|
|
],
|
|
plugins: [
|
|
SwaggerUIBundle.plugins.DownloadUrl
|
|
],
|
|
// requestSnippetsEnabled: true,
|
|
layout: "StandaloneLayout"
|
|
})
|
|
|
|
window.ui = ui
|
|
|
|
ui.initOAuth({
|
|
clientId: "your-client-id",
|
|
clientSecret: "your-client-secret-if-required",
|
|
realm: "your-realms",
|
|
appName: "your-app-name",
|
|
scopeSeparator: " ",
|
|
scopes: "openid profile email phone address",
|
|
additionalQueryStringParams: {},
|
|
useBasicAuthenticationWithAccessCodeGrant: false,
|
|
usePkceWithAuthorizationCodeGrant: false
|
|
})
|
|
}
|