-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
46 lines (42 loc) · 1.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<title>API Browser for Shopware 6</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-bundle.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui-standalone-preset.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css"/>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script>
let load = async () => {
let data = await (await fetch('/data.json')).json();
const ui = SwaggerUIBundle({
urls: data,
dom_id: '#swagger-ui',
deepLinking: true,
displayOperationId: true,
docExpansion: 'list',
validatorUrl: null,
defaultModelsExpandDepth: -1,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset,
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
showCommonExtensions: true
});
window.ui = ui
}
load();
</script>
</body>
</html>