forked from Soroban-Smart-Block-Explorer/Soroban-Smart-Block
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplayground.html
More file actions
75 lines (75 loc) · 2.12 KB
/
Copy pathplayground.html
File metadata and controls
75 lines (75 loc) · 2.12 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>API Playground · Soroban Smart Block Explorer</title>
<meta
name="description"
content="Interactive Swagger UI playground for the Soroban Smart Block Explorer API."
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css"
/>
<style>
body {
margin: 0;
background: #0d1117;
}
.topbar-wrapper {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.85rem 1.25rem;
background: #161b22;
border-bottom: 1px solid #30363d;
color: #e6edf3;
font-family:
system-ui,
-apple-system,
sans-serif;
}
.topbar-wrapper a {
color: #58a6ff;
text-decoration: none;
font-size: 0.9rem;
}
.topbar-wrapper strong {
font-size: 1rem;
}
.topbar-wrapper .spacer {
flex: 1;
}
</style>
</head>
<body>
<div class="topbar-wrapper">
<strong>⬡ API Playground</strong>
<span class="spacer"></span>
<a href="../site/index.html">← Docs home</a>
<a href="./try-it.html">Try-it console</a>
<a href="./changelog.md">API changelog</a>
</div>
<div id="swagger-ui"></div>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-standalone-preset.js"></script>
<script>
window.addEventListener("load", () => {
window.ui = SwaggerUIBundle({
url: "./openapi.yaml",
dom_id: "#swagger-ui",
deepLinking: true,
tryItOutEnabled: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset,
],
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
layout: "StandaloneLayout",
persistAuthorization: true,
});
});
</script>
</body>
</html>