Spaces:
Sleeping
Sleeping
Update dist/index.html
Browse files- dist/index.html +16 -5
dist/index.html
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
<!DOCTYPE html>
|
|
|
|
| 2 |
<html lang="en">
|
| 3 |
|
| 4 |
<head>
|
|
@@ -29,17 +30,28 @@ padding-top: 20px;
|
|
| 29 |
<body>
|
| 30 |
<div id="sidebar">
|
| 31 |
<h3>AMF 29518</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
<ul>
|
| 33 |
-
<li><a href="#" onclick="loadSwagger('
|
| 34 |
-
<li><a href="#" onclick="loadSwagger('
|
| 35 |
-
<li><a href="#" onclick="loadSwagger('
|
| 36 |
-
|
| 37 |
<!-- Add more API links here -->
|
| 38 |
</ul>
|
| 39 |
</div>
|
| 40 |
<div id="swagger-ui"></div>
|
| 41 |
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js" crossorigin></script>
|
| 42 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
function loadSwagger(url) {
|
| 44 |
window.ui = SwaggerUIBundle({
|
| 45 |
url: url,
|
|
@@ -52,5 +64,4 @@ loadSwagger('./Rel-18/TS29518_Namf_Communication.yaml');
|
|
| 52 |
};
|
| 53 |
</script>
|
| 54 |
</body>
|
| 55 |
-
|
| 56 |
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
|
| 3 |
<html lang="en">
|
| 4 |
|
| 5 |
<head>
|
|
|
|
| 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 |
+
</select>
|
| 38 |
<ul>
|
| 39 |
+
<li><a href="#" onclick="loadSwagger(release + '/TS29518_Namf_Communication.yaml')">Communication</a></li>
|
| 40 |
+
<li><a href="#" onclick="loadSwagger(release + '/TS29518_Namf_EventExposure.yaml')">Event Exposure</a></li>
|
| 41 |
+
<li><a href="#" onclick="loadSwagger(release + '/TS29518_Namf_Location.yaml')">Location</a></li>
|
|
|
|
| 42 |
<!-- Add more API links here -->
|
| 43 |
</ul>
|
| 44 |
</div>
|
| 45 |
<div id="swagger-ui"></div>
|
| 46 |
<script src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js" crossorigin></script>
|
| 47 |
<script>
|
| 48 |
+
let release = 'Rel-18';
|
| 49 |
+
|
| 50 |
+
function updateRelease() {
|
| 51 |
+
const selectElement = document.getElementById('release-select');
|
| 52 |
+
release = selectElement.value;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
function loadSwagger(url) {
|
| 56 |
window.ui = SwaggerUIBundle({
|
| 57 |
url: url,
|
|
|
|
| 64 |
};
|
| 65 |
</script>
|
| 66 |
</body>
|
|
|
|
| 67 |
</html>
|