ShawnAI commited on
Commit
b74c88c
·
1 Parent(s): f7c30a7

Update dist/index.html

Browse files
Files changed (1) hide show
  1. dist/index.html +181 -139
dist/index.html CHANGED
@@ -3,184 +3,226 @@
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
-
13
  #swagger-ui {
14
- padding: 10px;
15
- margin: 0;
16
- width: 100vw;
17
- position: relative;
18
  }
19
 
20
  ul {
21
- margin-top: 0.4em;
22
- margin-bottom: 0;
23
  }
24
 
25
  h5 {
26
- margin-top: 1em;
27
- margin-bottom: 0;
28
  }
29
 
30
  /* table of contents */
31
  #toc {
32
- padding: 0;
33
- background-color: white;
34
- z-index: 2;
35
- /* width: 250px; */
36
- position: fixed;
37
- /* border: solid; */
38
-
39
  }
40
 
41
  #toc nav {
42
- display: none;
43
- overflow: auto;
44
- height: calc(100vh - 48px);
45
  }
46
 
47
  #toc.active nav {
48
- display: block;
 
 
 
 
 
 
 
49
  }
50
- </style>
51
  </head>
52
 
53
  <body>
54
- <div id="toc">
55
- <h class="toc">
56
-
57
- <select id="release-select"
58
- onchange="update(currentFile)">
59
- <option value="Rel-18">Rel-18</option>
60
- <option value="Rel-17">Rel-17</option>
61
- <option value="Rel-16">Rel-16</option>
62
- <option value="Rel-15">Rel-15</option>
63
- </select>
64
- <label for="release-select"><b>NF List ▼</b></label>
65
- </h>
66
  <nav class="toc">
67
- <h5>AMF 29518</h5>
68
- <ul class="compact toc ulBare ulEmpty">
69
- <li><a href="#" onclick="update('TS29518_Namf_Communication.yaml')">
70
- Communication</a></li>
71
- <li><a href="#" onclick="update('TS29518_Namf_EventExposure.yaml')">
72
- Event Exposure</a></li>
73
- <li><a href="#" onclick="update('TS29518_Namf_Location.yaml')">
74
- Location</a></li>
75
- <li><a href="#" onclick="update('TS29518_Namf_MT.yaml')">
76
- MT</a></li>
77
- <li><a href="#" onclick="update('TS29518_Namf_MBSCommunication.yaml')">
78
- MBS Communication</a></li>
79
- <li><a href="#" onclick="update('TS29518_Namf_MBSBroadcast.yaml')">
80
- MBS Broadcast</a></li>
81
- </ul>
82
- <h5>SMF 29502 29508 29542</h5>
83
- <ul>
84
- <li><a href="#" onclick="update('TS29502_Nsmf_PDUSession.yaml')">
85
- PDU Session</a></li>
86
- <li><a href="#" onclick="update('TS29508_Nsmf_EventExposure.yaml')">
87
- Event Exposure</a></li>
88
- <li><a href="#" onclick="update('TS29542_Nsmf_NIDD.yaml')">
89
- NIDD</a></li>
90
- </ul>
91
- <h5>NRF 29510</h5>
92
- <ul>
93
- <li><a href="#" onclick="update('TS29510_Nnrf_NFManagement.yaml')">
94
- NF Management</a></li>
95
- <li><a href="#" onclick="update('TS29510_Nnrf_NFDiscovery.yaml')">
96
- NF Discovery</a></li>
97
- <li><a href="#" onclick="update('TS29510_Nnrf_AccessToken.yaml')">
98
- OAuth2</a></li>
99
- <li><a href="#" onclick="update('TS29510_Nnrf_Bootstrapping.yaml')">
100
- Bootstrapping</a></li>
101
- </ul>
102
- <h5>UDM 29503</h5>
103
- <ul>
104
- <li><a href="#" onclick="update('TS29503_Nudm_SDM.yaml')">
105
- SDM</a></li>
106
- <li><a href="#" onclick="update('TS29503_Nudm_UECM.yaml')">
107
- UECM</a></li>
108
- <li><a href="#" onclick="update('TS29503_Nudm_UEAU.yaml')">
109
- UE Authentication</a></li>
110
- <li><a href="#" onclick="update('TS29503_Nudm_EE.yaml')">
111
- Event Exposure</a></li>
112
- <li><a href="#" onclick="update('TS29503_Nudm_PP.yaml')">
113
- Parameter Provisioning</a></li>
114
- <li><a href="#" onclick="update('TS29503_Nudm_NIDDAU.yaml')">
115
- NIDD Authorization</a></li>
116
- <li><a href="#" onclick="update('TS29503_Nudm_MT.yaml')">
117
- MT</a></li>
118
- <li><a href="#" onclick="update('TS29503_Nudm_SSAU.yaml')">
119
- Service-Specific Authorization</a></li>
120
- <li><a href="#" onclick="update('TS29503_Nudm_RSDS.yaml')">
121
- RSDS</a></li>
122
- <li><a href="#" onclick="update('TS29503_Nudm_UEID.yaml')">
123
- UEID</a></li>
124
- </ul>
125
- <h5>NSSF 29531</h5>
126
- <ul>
127
- <li><a href="#" onclick="update('TS29531_Nnssf_NSSAIAvailability.yaml')">
128
- NSSAI Availability</a></li>
129
- <li><a href="#" onclick="update('TS29531_Nnssf_NSSelection.yaml')">
130
- NS Selection</a></li>
131
- </ul>
132
- <h5>LMF 29572</h5>
133
- <ul>
134
- <li><a href="#" onclick="update('TS29572_Nlmf_Location.yaml')">
135
- Location</a></li>
136
- <li><a href="#" onclick="update('TS29572_Nlmf_Broadcast.yaml')">
137
- Broadcast</a></li>
138
- </ul>
139
- <h5>AUSF 29509</h5>
140
- <ul>
141
- <li><a href="#" onclick="update('TS29509_Nausf_UEAuthentication.yaml')">
142
- UE Authentication</a></li>
143
- <li><a href="#" onclick="update('TS29509_Nausf_SoRProtection.yaml')">
144
- SoR Protection </a></li>
145
- <li><a href="#" onclick="update('TS29509_Nausf_UPUProtection.yaml')">
146
- UPU Protection </a></li>
147
- </ul>
148
- <br></br>
149
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  </nav>
151
  <!-- Add more API links here -->
152
- </div>
153
- <div id="swagger-ui"></div>
154
- <script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
155
- <script>
156
  let currentRelease = 'Rel-18';
157
  let currentFile = 'TS29518_Namf_Communication.yaml';
158
  function update(updatedFile) {
159
- const selectElement = document.getElementById('release-select');
160
- currentRelease = selectElement.value;
161
- currentFile = updatedFile;
162
- load(currentRelease, currentFile); // Load the corresponding file for the selected release
163
  }
164
  function load(loadRelease, loadFile) {
165
- console.log('Load: ', loadRelease, loadFile, window.location.href);
166
- window.ui = SwaggerUIBundle({
167
- url: loadRelease + '/' + loadFile,
168
- dom_id: '#swagger-ui'
169
- });
170
  }
171
  window.onload = () => {
172
- update(currentFile);
173
  };
174
 
175
  const toc = document.getElementById("toc");
 
176
  toc.querySelector("label").addEventListener("click", e => {
177
- toc.classList.toggle("active");
178
  });
179
  toc.querySelector("nav").addEventListener("click", e => {
180
- toc.classList.remove("active");
 
 
 
181
  });
182
 
183
- </script>
184
  </body>
185
 
186
  </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 5GC SBI OpenAPI</title>
10
+ <link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />
11
+ <style>
 
12
  #swagger-ui {
13
+ padding: 10px;
14
+ margin: 0;
15
+ width: 100vw;
16
+ position: relative;
17
  }
18
 
19
  ul {
20
+ margin-top: 0.4em;
21
+ margin-bottom: 0;
22
  }
23
 
24
  h5 {
25
+ margin-top: 1em;
26
+ margin-bottom: 0;
27
  }
28
 
29
  /* table of contents */
30
  #toc {
31
+ padding: 0;
32
+ background-color: white;
33
+ z-index: 2;
34
+ /* width: 250px; */
35
+ position: fixed;
36
+ /* border: solid; */
37
+
38
  }
39
 
40
  #toc nav {
41
+ display: none;
42
+ overflow: auto;
43
+ height: calc(100vh - 48px);
44
  }
45
 
46
  #toc.active nav {
47
+ display: block;
48
+ }
49
+
50
+ #release-select {
51
+ z-index: 2;
52
+ position: relative;
53
+ float: right;
54
+
55
  }
56
+ </style>
57
  </head>
58
 
59
  <body>
60
+ <select id="release-select" onchange="update(currentFile)">
61
+ <option value="Rel-18">Rel-18</option>
62
+ <option value="Rel-17">Rel-17</option>
63
+ <option value="Rel-16">Rel-16</option>
64
+ <option value="Rel-15">Rel-15</option>
65
+ </select>
66
+ <div id="toc">
67
+
68
+
69
+
70
+ <label><b>☰ 5GC NF List</b></label>
 
71
  <nav class="toc">
72
+ <h5>AMF 29.518</h5>
73
+ <ul class="compact toc ulBare ulEmpty">
74
+ <li><a href="#" onclick="update('TS29518_Namf_Communication.yaml')">
75
+ Communication</a></li>
76
+ <li><a href="#" onclick="update('TS29518_Namf_EventExposure.yaml')">
77
+ Event Exposure</a></li>
78
+ <li><a href="#" onclick="update('TS29518_Namf_Location.yaml')">
79
+ Location</a></li>
80
+ <li><a href="#" onclick="update('TS29518_Namf_MT.yaml')">
81
+ MT</a></li>
82
+ <li><a href="#" onclick="update('TS29518_Namf_MBSCommunication.yaml')">
83
+ MBS Communication</a></li>
84
+ <li><a href="#" onclick="update('TS29518_Namf_MBSBroadcast.yaml')">
85
+ MBS Broadcast</a></li>
86
+ </ul>
87
+ <h5>SMF 29.502/508/542</h5>
88
+ <ul>
89
+ <li><a href="#" onclick="update('TS29502_Nsmf_PDUSession.yaml')">
90
+ PDU Session</a></li>
91
+ <li><a href="#" onclick="update('TS29508_Nsmf_EventExposure.yaml')">
92
+ Event Exposure</a></li>
93
+ <li><a href="#" onclick="update('TS29542_Nsmf_NIDD.yaml')">
94
+ NIDD</a></li>
95
+ </ul>
96
+ <h5>NRF 29.510</h5>
97
+ <ul>
98
+ <li><a href="#" onclick="update('TS29510_Nnrf_NFManagement.yaml')">
99
+ NF Management</a></li>
100
+ <li><a href="#" onclick="update('TS29510_Nnrf_NFDiscovery.yaml')">
101
+ NF Discovery</a></li>
102
+ <li><a href="#" onclick="update('TS29510_Nnrf_AccessToken.yaml')">
103
+ OAuth2</a></li>
104
+ <li><a href="#" onclick="update('TS29510_Nnrf_Bootstrapping.yaml')">
105
+ Bootstrapping</a></li>
106
+ </ul>
107
+ <h5>UDM 29.503</h5>
108
+ <ul>
109
+ <li><a href="#" onclick="update('TS29503_Nudm_SDM.yaml')">
110
+ SDM</a></li>
111
+ <li><a href="#" onclick="update('TS29503_Nudm_UECM.yaml')">
112
+ UECM</a></li>
113
+ <li><a href="#" onclick="update('TS29503_Nudm_UEAU.yaml')">
114
+ UE Authentication</a></li>
115
+ <li><a href="#" onclick="update('TS29503_Nudm_EE.yaml')">
116
+ Event Exposure</a></li>
117
+ <li><a href="#" onclick="update('TS29503_Nudm_PP.yaml')">
118
+ Parameter Provisioning</a></li>
119
+ <li><a href="#" onclick="update('TS29503_Nudm_NIDDAU.yaml')">
120
+ NIDD Authorization</a></li>
121
+ <li><a href="#" onclick="update('TS29503_Nudm_MT.yaml')">
122
+ MT</a></li>
123
+ <li><a href="#" onclick="update('TS29503_Nudm_SSAU.yaml')">
124
+ Service-Specific Authorization</a></li>
125
+ <li><a href="#" onclick="update('TS29503_Nudm_RSDS.yaml')">
126
+ RSDS</a></li>
127
+ <li><a href="#" onclick="update('TS29503_Nudm_UEID.yaml')">
128
+ UEID</a></li>
129
+ </ul>
130
+ <h5>NSSF 29.531</h5>
131
+ <ul>
132
+ <li><a href="#" onclick="update('TS29531_Nnssf_NSSAIAvailability.yaml')">
133
+ NSSAI Availability</a></li>
134
+ <li><a href="#" onclick="update('TS29531_Nnssf_NSSelection.yaml')">
135
+ NS Selection</a></li>
136
+ </ul>
137
+ <h5>LMF 29.572</h5>
138
+ <ul>
139
+ <li><a href="#" onclick="update('TS29572_Nlmf_Location.yaml')">
140
+ Location</a></li>
141
+ <li><a href="#" onclick="update('TS29572_Nlmf_Broadcast.yaml')">
142
+ Broadcast</a></li>
143
+ </ul>
144
+ <h5>AUSF 29.509</h5>
145
+ <ul>
146
+ <li><a href="#" onclick="update('TS29509_Nausf_UEAuthentication.yaml')">
147
+ UE Authentication</a></li>
148
+ <li><a href="#" onclick="update('TS29509_Nausf_SoRProtection.yaml')">
149
+ SoR Protection </a></li>
150
+ <li><a href="#" onclick="update('TS29509_Nausf_UPUProtection.yaml')">
151
+ UPU Protection </a></li>
152
+ </ul>
153
+ <h5>SMSF 29.540</h5>
154
+ <ul>
155
+ <li><a href="#" onclick="update('TS29540_Nsmsf_SMService.yaml')">
156
+ SM Service</a></li>
157
+ </ul>
158
+ <h5>PCF 29.514/534/507/512/554/525/537</h5>
159
+ <ul>
160
+ <li><a href="#" onclick="update('TS29514_Npcf_PolicyAuthorization.yaml')">
161
+ Policy Authorization</a></li>
162
+ <li><a href="#" onclick="update('TS29534_Npcf_AMPolicyAuthorization.yaml')">
163
+ AM Policy Authorization</a></li>
164
+ <li><a href="#" onclick="update('TS29507_Npcf_AMPolicyControl.yaml')">
165
+ AM Policy Control</a></li>
166
+ <li><a href="#" onclick="update('TS29512_Npcf_SMPolicyControl.yaml')">
167
+ SM Policy Control</a></li>
168
+ <li><a href="#" onclick="update('TS29554_Npcf_BDTPolicyControl.yaml')">
169
+ BDT Policy Control</a></li>
170
+ <li><a href="#" onclick="update('TS29523_Npcf_EventExposure.yaml')">
171
+ Event Exposure</a></li>
172
+ <li><a href="#" onclick="update('TS29525_Npcf_UEPolicyControl.yaml')">
173
+ UE Policy Control</a></li>
174
+ <li><a href="#" onclick="update('TS29537_Npcf_MBSPolicyControl.yaml')">
175
+ MBS Policy Control </a></li>
176
+ <li><a href="#" onclick="update('TS29537_Npcf_MBSPolicyAuthorization.yaml')">
177
+ MBS Policy Authorization</a></li>
178
+ </ul>
179
+ <h5>NSSAAF 29.526</h5>
180
+ <ul>
181
+ <li><a href="#" onclick="update('TS29526_Nnssaaf_NSSAA.yaml')">
182
+ NSSAA</a></li>
183
+ <li><a href="#" onclick="update('TS29526_Nnssaaf_AIW.yaml')">
184
+ AIW</a></li>
185
+ </ul>
186
+ <br></br>
187
+
188
  </nav>
189
  <!-- Add more API links here -->
190
+ </div>
191
+ <div id="swagger-ui"></div>
192
+ <script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
193
+ <script>
194
  let currentRelease = 'Rel-18';
195
  let currentFile = 'TS29518_Namf_Communication.yaml';
196
  function update(updatedFile) {
197
+ const selectElement = document.getElementById('release-select');
198
+ currentRelease = selectElement.value;
199
+ currentFile = updatedFile;
200
+ load(currentRelease, currentFile); // Load the corresponding file for the selected release
201
  }
202
  function load(loadRelease, loadFile) {
203
+ console.log('Load: ', loadRelease, loadFile, window.location.href);
204
+ window.ui = SwaggerUIBundle({
205
+ url: loadRelease + '/' + loadFile,
206
+ dom_id: '#swagger-ui'
207
+ });
208
  }
209
  window.onload = () => {
210
+ update(currentFile);
211
  };
212
 
213
  const toc = document.getElementById("toc");
214
+ const swagger = document.getElementById("swagger-ui");
215
  toc.querySelector("label").addEventListener("click", e => {
216
+ toc.classList.toggle("active");
217
  });
218
  toc.querySelector("nav").addEventListener("click", e => {
219
+ toc.classList.remove("active");
220
+ });
221
+ swagger.addEventListener("click", e => {
222
+ toc.classList.remove("active");
223
  });
224
 
225
+ </script>
226
  </body>
227
 
228
  </html>