-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.html
154 lines (145 loc) · 7.71 KB
/
index.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bosch Smart Home Local API</title>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@4/swagger-ui.css"/>
<link rel="stylesheet" type="text/css" href="css/override.css">
<link rel="stylesheet" type="text/css" href="css/swagger-custom.css">
<link rel="icon" type="image/png" href="images/bosch_icon.png" sizes="32x32"/>
<link rel="icon" type="image/png" href="images/bosch_icon.png" sizes="16x16"/>
<style>
html {
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
background: #fafafa;
}
</style>
</head>
<body class="apidocs" onload="chooseApi()">
<div class="swagger-ui">
<section data-reactroot="" class="swagger-ui swagger-container">
<div class="topbar">
<div class="wrapper">
<div class="topbar-wrapper">
<div class="topbar-logo-wrapper">
<div class="topbar-logo">
<a href="https://www.bosch-smarthome.com/" target="_blank">
<img src="images/bosch_smart_home_logo.png">
</a>
</div>
<div>
<a class="navbar-brand" href="index.html">
OpenAPI Documentation
</a>
</div>
</div>
<form class="download-url-wrapper">
<label class="select-label" for="select"><span>Select a definition</span>
<select id="select" onchange="chooseApi()">
<option selected="selected" value="openapi/MainResources-local-openapi-v3.yml">
Main Resources
</option>
<option value="openapi/ClimateControl-local-openapi-v3.yml">
Climate Control
</option>
<option value="openapi/DoorWindowContact-local-openapi-v3.yml">
Door/Window Contact
</option>
<option value="openapi/IntrusionDetectionSystem-local-openapi-v3.yml">
Intrusion Detection System
</option>
<option value="openapi/LightControl-local-openapi-v3.yml">
Light Control
</option>
<option value="openapi/LightControl-II-local-openapi-v3.yml">
Light Control II
</option>
<option value="openapi/MotionDetector-local-openapi-v3.yml">
Motion Detector
</option>
<option value="openapi/PresenceSimulationSystem-local-openapi-v3.yml">
Presence Simulation
</option>
<option value="openapi/SecurityCamera360-local-openapi-v3.yml">
Security Camera 360
</option>
<option value="openapi/SecurityCameraEyes-local-openapi-v3.yml">
Security Camera Eyes
</option>
<option value="openapi/Shutter-local-openapi-v3.yml">
Shutter Control
</option>
<option value="openapi/Shutter-II-local-openapi-v3.yml">
Shutter Control II
</option>
<option value="openapi/SmartPlug-local-openapi-v3.yml">
Smart Plug
</option>
<option value="openapi/SmokeDetector-local-openapi-v3.yml">
Smoke Detector
</option>
<option value="openapi/SmokeDetector-II-local-openapi-v3.yml">
Smoke Detector II
</option>
<option value="openapi/Thermostat-local-openapi-v3.yml">
Thermostat
</option>
<option value="openapi/Thermostat-II-local-openapi-v3.yml">
Thermostat II
</option>
<option value="openapi/Twinguard-local-openapi-v3.yml">
Twinguard
</option>
<option value="openapi/UniversalSwitch-local-openapi-v3.yml">
Universal Switch
</option>
<option value="openapi/RoomThermostat-local-openapi-v3.yml">
Room Thermostat
</option>
<option value="openapi/WaterDetectionSystem-local-openapi-v3.yml">
Water Detection System
</option>
</select>
</label>
</form>
</div>
</div>
</div>
</section>
<div id="swagger-ui"></div>
</div>
<script src="https://unpkg.com/swagger-ui-dist@4/swagger-ui-bundle.js" crossorigin></script>
<script src="https://unpkg.com/swagger-ui-dist@4/swagger-ui-standalone-preset.js" crossorigin></script>
<script defer>
function chooseApi() {
let path = document.getElementById('select').value;
const ui = SwaggerUIBundle({
url: path,
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "BaseLayout"
})
// End Swagger UI call region
window.ui = ui
};
</script>
</body>
</html>