-
Notifications
You must be signed in to change notification settings - Fork 284
/
index-hashroute.html
65 lines (53 loc) · 2.37 KB
/
index-hashroute.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatly/bootstrap.min.css" integrity="sha384-JJl14kOPjuUj+o0fDTJGBSCDKpu1A4BuCmARIetHUvTVmopvVZITFd4AhRMJIlz7" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</head>
<body>
<header>
<nav class="navbar navbar-dark bg-dark">
<div class="container-fluid">
<form class="d-flex">
<button
onclick="
document.getElementById('rapidoc-pets').setAttribute('spec-url', 'https://petstore.swagger.io/v2/swagger.json')"
type="button" class="btn btn-primary">Set spec url</button>
</form>
</div>
</nav>
</header>
<main>
<div class="row">
<div class="list-group rounded-0 d-none" id="services-swagger-list" role="tablist">
<a class="list-group-item list-group-item-action active"
id="list-pets"
href="#tab-pets"
data-bs-toggle="list" role="tab">pets</a>
</div>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane active show"
id="tab-pets"
role="tabpanel">
<rapi-doc
id="rapidoc-pets"
route-prefix="#tab-pets/"
update-route="true"
render-style="read"
allow-authentication="false"
allow-server-selection="false"
show-header="false"
show-info="true"
allow-spec-file-load="false"
allow-spec-url-load="false"
></rapi-doc>
</div>
</div>
</div>
</main>
</body>
</html>