Spaces:
Sleeping
Sleeping
Update dist/index.html
Browse files- dist/index.html +59 -61
dist/index.html
CHANGED
@@ -3,70 +3,68 @@
|
|
3 |
<html lang="en">
|
4 |
|
5 |
<head>
|
6 |
-
<meta charset="utf-8" />
|
7 |
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8 |
-
<meta name="description" content="SwaggerUI" />
|
9 |
-
<title>3GPP SBI OpenAPI</title>
|
10 |
-
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />
|
11 |
-
<style>
|
12 |
-
#sidebar {
|
13 |
-
position: fixed;
|
14 |
-
top: 0;
|
15 |
-
left: 0;
|
16 |
-
width: 200px;
|
17 |
-
height: 100%;
|
18 |
-
border-right: 1px solid #ccc;
|
19 |
-
padding: 10px;
|
20 |
-
overflow: auto;
|
21 |
-
}
|
22 |
|
23 |
-
#swagger-ui {
|
24 |
-
margin-left: 210px;
|
25 |
-
padding-top: 20px;
|
26 |
-
}
|
27 |
-
</style>
|
28 |
</head>
|
29 |
|
30 |
<body>
|
31 |
-
<div id="sidebar">
|
32 |
-
<h3>AMF 29518</h3>
|
33 |
-
<label for="release-select">Select Release:</label>
|
34 |
-
<select id="release-select" onchange="updateRelease()">
|
35 |
-
<option value="Rel-18">Rel-18</option>
|
36 |
-
<option value="Rel-17">Rel-17</option>
|
37 |
-
<option value="Rel-17">Rel-16</option>
|
38 |
-
<option value="Rel-17">Rel-15</option>
|
39 |
-
</select>
|
40 |
-
<ul>
|
41 |
-
<li><a href="#" onclick="
|
42 |
-
<li><a href="#" onclick="loadSwagger(release + '/TS29518_Namf_EventExposure.yaml')">Event Exposure</a></li>
|
43 |
-
<li><a href="#" onclick="
|
44 |
-
<!-- Add more API links here -->
|
45 |
-
</ul>
|
46 |
-
</div>
|
47 |
-
<div id="swagger-ui"></div>
|
48 |
-
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
|
49 |
-
<script>
|
50 |
-
let release = 'Rel-18';
|
51 |
-
let currentFile = 'TS29518_Namf_Communication.yaml';
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
release
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
loadSwagger('Rel-18/TS29518_Namf_Communication.yaml');
|
69 |
-
};
|
70 |
-
</script>
|
71 |
</body>
|
|
|
72 |
</html>
|
|
|
3 |
<html lang="en">
|
4 |
|
5 |
<head>
|
6 |
+
<meta charset="utf-8" />
|
7 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8 |
+
<meta name="description" content="SwaggerUI" />
|
9 |
+
<title>3GPP SBI OpenAPI</title>
|
10 |
+
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />
|
11 |
+
<style>
|
12 |
+
#sidebar {
|
13 |
+
position: fixed;
|
14 |
+
top: 0;
|
15 |
+
left: 0;
|
16 |
+
width: 200px;
|
17 |
+
height: 100%;
|
18 |
+
border-right: 1px solid #ccc;
|
19 |
+
padding: 10px;
|
20 |
+
overflow: auto;
|
21 |
+
}
|
22 |
|
23 |
+
#swagger-ui {
|
24 |
+
margin-left: 210px;
|
25 |
+
padding-top: 20px;
|
26 |
+
}
|
27 |
+
</style>
|
28 |
</head>
|
29 |
|
30 |
<body>
|
31 |
+
<div id="sidebar">
|
32 |
+
<h3>AMF 29518</h3>
|
33 |
+
<label for="release-select">Select Release:</label>
|
34 |
+
<select id="release-select" onchange="updateRelease(currentFile)">
|
35 |
+
<option value="Rel-18">Rel-18</option>
|
36 |
+
<option value="Rel-17">Rel-17</option>
|
37 |
+
<option value="Rel-17">Rel-16</option>
|
38 |
+
<option value="Rel-17">Rel-15</option>
|
39 |
+
</select>
|
40 |
+
<ul>
|
41 |
+
<li><a href="#" onclick="updateRelease('TS29518_Namf_Communication.yaml')">Communication</a></li>
|
42 |
+
<li><a href="#" onclick="loadSwagger(release + '/TS29518_Namf_EventExposure.yaml')">Event Exposure</a></li>
|
43 |
+
<li><a href="#" onclick="updateRelease('TS29518_Namf_Location.yaml')">Location</a></li>
|
44 |
+
<!-- Add more API links here -->
|
45 |
+
</ul>
|
46 |
+
</div>
|
47 |
+
<div id="swagger-ui"></div>
|
48 |
+
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
|
49 |
+
<script>
|
50 |
+
let release = 'Rel-18';
|
51 |
+
let currentFile = 'TS29518_Namf_Communication.yaml';
|
52 |
+
function updateRelease(currentFile) {
|
53 |
+
const selectElement = document.getElementById('release-select');
|
54 |
+
release = selectElement.value;
|
55 |
+
loadSwagger(release + '/' + currentFile); // Load the corresponding file for the selected release
|
56 |
+
}
|
57 |
+
function loadSwagger(url) {
|
58 |
+
currentFile = url.split('/')[1];
|
59 |
+
window.ui = SwaggerUIBundle({
|
60 |
+
url: url,
|
61 |
+
dom_id: '#swagger-ui'
|
62 |
+
});
|
63 |
+
}
|
64 |
+
window.onload = () => {
|
65 |
+
updateRelease(currentFile);
|
66 |
+
};
|
67 |
+
</script>
|
|
|
|
|
|
|
68 |
</body>
|
69 |
+
|
70 |
</html>
|