Skip to content

Commit

Permalink
Swagger Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Jul 20, 2023
1 parent 9fd7d7a commit 873e132
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
68 changes: 68 additions & 0 deletions swagger-ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!doctype html>
<html lang='en'>

<head>
<meta charset='UTF-8' />
<title>grails-application-forge-6.0.0-SNAPSHOT</title>
<link rel='icon' type='image/png' href='/swagger-ui/res/favicon-32x32.png' sizes='32x32' />
<link rel='icon' type='image/png' href='/swagger-ui/res/favicon-16x16.png' sizes='16x16' />
<script src='/swagger-ui/res/swagger-ui-bundle.js'></script>
<script src='/swagger-ui/res/swagger-ui-standalone-preset.js'></script>
<link rel='stylesheet' type='text/css' href='/swagger-ui/res/swagger-ui.css' />


</head>

<body>

<div id='swagger-ui'></div>
<script>
window.onload = function() {
const extract = function(v) {
return decodeURIComponent(v.replace(/(?:(?:^|.*;\s*)contextPath\s*\=\s*([^;]*).*$)|^.*$/, "$1"));
},
cookie = extract(document.cookie),
contextPath = cookie === '' ? extract(window.location.search.substring(1)) : cookie,
f = contextPath === '' ? undefined : function(system) {
return {
statePlugins: {
spec: {
wrapActions: {
updateJsonSpec: (oriAction, system) => (...args) => {
let [spec] = args;
if (spec && spec.paths) {
const newPaths = {};
Object.entries(spec.paths).forEach(([path, value]) => newPaths[contextPath + path] = value);
spec.paths = newPaths;
}
oriAction(...args);
}
}
}
}
};
},
ui = SwaggerUIBundle({
url: contextPath + '/swagger/grails-application-forge-6.0.0-SNAPSHOT.yml',
dom_id: '#swagger-ui',
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl,
f
],
deepLinking: true,
layout: "StandaloneLayout",
tagsSorter: "alpha",
validatorUrl: null
});

window.ui = ui;

};
</script>
</body>

</html>
Empty file added swagger-ui/res/classic.css
Empty file.
Binary file added swagger-ui/res/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added swagger-ui/res/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions swagger-ui/res/swagger-ui-bundle.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions swagger-ui/res/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions swagger-ui/res/swagger-ui.css

Large diffs are not rendered by default.

0 comments on commit 873e132

Please sign in to comment.