-
Notifications
You must be signed in to change notification settings - Fork 0
/
map-swagger.yml
312 lines (297 loc) · 9.32 KB
/
map-swagger.yml
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
openapi: "3.0.0"
info:
version: 1.0.0
title: Lora-Map
description: Swagger-File for the API of the Lora-Map
contact:
name: Philip Schell
email: [email protected]
license:
name: LGPL 3
url: https://www.gnu.org/licenses/lgpl-3.0.html
servers:
- url: http://localhost:8080
paths:
/api/json/camera:
get:
description: Get related data to Cameras
tags:
- api
responses:
200:
description: ok
content:
application/json:
example:
Counter:
Haupteingang:
Lastcameradata: "04/08/2021 00:20:31"
Name: "Camera 1"
Total: 50
Incoming: 35
Outgoing: 15
Density:
Hauptflaeche:
DensityCount: 10
TimeStamp: "04/08/2021 00:20:31"
AverageFlowMagnitude: 5.2
AverageFlowDirection: 175.2
LastUpdate: "04/08/2021 00:20:31"
Fights:
Kneipe:
LastUpdate: "04/08/2021 00:20:31"
TimeStamp: "04/08/2021 00:20:31"
Situation: "fight"
FightProbability: 0.7
/api/json/position:
get:
description: Get related data to Positions
tags:
- api
responses:
200:
description: ok
content:
application/json:
example:
Positions:
AA:
Rssi: 5.2
Snr: 3.2
Lorarecievedtime: "04/08/2021 00:20:31"
Recievedtime: "04/08/2021 00:20:31"
Latitude: 50.2
Longitude: 7.8
UTM:
MGRS: "32U MA 14357 61557"
Base: "32U MA"
FieldWidth: "14"
FieldHeight: "61"
Width: "357"
Height: "557"
Hdop: 1.2
Lastgpspostime: "04/08/2021 00:20:31"
Battery: 4.2
Batterysimple: 4
Fix: true
Height: 60.2
Name: "AA"
Icon: null
MenuIcon: null
Group: null
Alarms:
AA:
Rssi: 5.2
Snr: 3.2
Lorarecievedtime: "04/08/2021 00:20:31"
Recievedtime: "04/08/2021 00:20:31"
Latitude: 50.2
Longitude: 7.8
UTM:
MGRS: "32U MA 14357 61557"
Base: "32U MA"
FieldWidth: "14"
FieldHeight: "61"
Width: "357"
Height: "557"
Hdop: 1.2
Lastgpspostime: "04/08/2021 00:20:31"
Battery: 4.2
Batterysimple: 4
Fix: true
Height: 60.2
Name: "AA"
Icon: null
MenuIcon: null
Group: null
ButtonPressed:
- "04/08/2021 00:20:31"
/api/json/sensor:
get:
description: Get related data to Sensors
tags:
- api
responses:
200:
description: ok
content:
application/json:
example:
Enviroments:
Sensor1:
Name: "Sensor1"
Rssi: 50.2
Snr: 11.2
Temperature: 23.4
Humidity: 43.2
Windspeed: 12.5
Lorarecievedtime: "04/08/2021 00:20:31"
Weather:
Warnungen:
- Body: "Es tritt leichter Frost zwischen -2 °C und -5 °C auf. Vor allem bei Aufklaren über Schnee sinken die Temperaturen auf Werte bis -9 °C."
From: "2021-04-08T13:54:00Z"
Headline: "Amtliche WARNUNG vor FROST"
Id: "Warnungen_Gemeinden.808111000.2.49.0.1.276.0.DWD.PVW.1617890040000.b2a1b3ea-db16-4992-920b-ea9c1b1a905f.DEU"
Instructions: ""
Level: "minor"
Location: "Stadt Stuttgart"
To: "2021-04-09T07:00:00Z"
Type: "frost"
/api/json/settings:
get:
description: Get related data to Settings
tags:
- api
responses:
200:
description: ok
content:
application/json:
example:
Startloclat: 50.2
Startloclon: 7.2
Grid:
Major:
- from:
- 50.2
- 7.2
to:
- 50.2
- 7.1
Minor:
- from:
- 50.1
- 7.2
- to:
- 50.1
- 7.1
FightDedection:
fight:
Alias: "fightcam"
Level: 0.7
Polygon:
- - 50.2
- 7.2
- - 50.1
- 7.2
- - 50.2
- 7.1
DensityArea:
dens:
Alias: "denscam"
Maximum:
Polygon:
- - 50.2
- 7.2
- - 50.1
- 7.2
- - 50.2
- 7.1
Sensors:
temp:
Coordinates:
- 50.2
- 7.2
Level: 20
Alias: "Temperatur"
Layers:
online:
title: Online Map
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
minZoom: 1
maxZoom: 19
GeoLayer: {}
/api/time:
get:
description: Get the current server time
tags:
- api
responses:
200:
description: ok
content:
application/json:
example:
utc: "04/09/2021 21:55:37"
/api/svg/marker.svg:
get:
description: Get a complete marker for the map
tags:
- marker
responses:
200:
description: ok
/api/svg/person.svg:
get:
description: Get an person icon
tags:
- marker
responses:
200:
description: ok
/admin/login:
post:
description: Login into the Admin pannel, is needed for every other /admin reqeust. Returns a session cookie
tags:
- admin
responses:
307:
description: Redirect to /admin if login was successful and to /admin/login.html if not.
/admin/api/json/name:
get:
description: Get the raw content of names.json
tags:
- admin
responses:
200:
description: Returns the raw content
403:
description: You are not logged in, see /admin/login for infos.
put:
description: Save the raw content to names.json
tags:
- admin
responses:
200:
description: Ok if valid json in the request
403:
description: You are not logged in, see /admin/login for infos.
/admin/api/json/geo:
get:
description: Get the raw content of geo.json
tags:
- admin
responses:
200:
description: Returns the raw content
403:
description: You are not logged in, see /admin/login for infos.
put:
description: Save the raw content to geo.json
tags:
- admin
responses:
200:
description: Ok if valid json in the request
403:
description: You are not logged in, see /admin/login for infos.
/admin/api/json/setting:
get:
description: Get the raw content of settings.json
tags:
- admin
responses:
200:
description: Returns the raw content
403:
description: You are not logged in, see /admin/login for infos.
put:
description: Save the raw content to settings.json
tags:
- admin
responses:
200:
description: Ok if valid json in the request
403:
description: You are not logged in, see /admin/login for infos.