chore: increment v_js_includes (#7029)
[openemr.git] / swagger / swagger-initializer.js
blob4f75da82a0d3f3585fd4fc57342bcd6785ba663a
1 window.onload = function() {
2     // Begin Swagger UI call region
3     const ui = SwaggerUIBundle({
4     url: "openemr-api.yaml",
5     dom_id: '#swagger-ui',
6     oauth2RedirectUrl: `${window.location.protocol}//${window.location.host}${window.location.pathname.replace(/[^/]*$/, '')}oauth2-redirect.html`,
7     deepLinking: true,
8     presets: [
9         SwaggerUIBundle.presets.apis
10     ],
11     defaultModelsExpandDepth: -1
12     });
13     ui.initOAuth({
14     usePkceWithAuthorizationCodeGrant: true
15     });
16     // End Swagger UI call region
18     window.ui = ui;