Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
2387 lines (2316 loc) · 71.6 KB
/
Copy pathopenapi.yaml
File metadata and controls
2387 lines (2316 loc) · 71.6 KB
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: NavigaTUM
description: |-
Navigating around TUM with excellence – An API to search for rooms,
buildings and other places
NavigaTUM is a tool developed by students for students, to help you get around at [TUM](https://tum.de). Feel free to contribute.
- [x] Interactive/static maps to look up the position of rooms or buildings
- [x] Fast and typo-tolerant search
- [x] Support for different room code formats as well as generic names
- [x] All functionality is also available via an open and well documented API
- [x] Automatically update the data from upstream datasources
- [ ] Allow students/staff to easily submit feedback and data patches
- [ ] Generate maps from CAD data sources
- [ ] Generate turn by turn navigation advice for navigating end to end
If you'd like to help out or join us in this adventure, we would love to talk to you.
termsOfService: https://nav.tum.de/en/about/privacy
contact:
name: OpenSource @ TUM e.V.
url: https://tum.dev/
email: navigatum@tum.de
license:
name: GPL v3
url: https://www.gnu.org/licenses/
version: 1.0.0
x-logo:
href: https://nav.tum.de
url: https://raw.githubusercontent.com/TUM-Dev/NavigaTUM/refs/heads/main/webclient/app/assets/logos/navigatum.svg
servers:
- url: https://nav.tum.de
description: production
paths:
"/api/calendar":
post:
tags:
- calendar
summary: Retrieve Calendar Entries
description: |-
Retrieves calendar entries for specific `ids` within the requested time span.
The time span is defined by the `start_after` and `end_before` query parameters.
Ensure to provide valid date-time formats for these parameters.
If successful, returns additional entries in the requested time span.
operationId: calendar_handler
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/Arguments"
required: true
responses:
'200':
description: "**Entries of the calendar** in the requested time span"
content:
application/json:
schema:
type: object
additionalProperties:
"$ref": "#/components/schemas/LocationEventsResponse"
propertyNames:
type: string
'400':
description: "**Bad Request.** Not all fields in the body are present as
defined above"
content:
text/plain:
schema:
type: string
example: Too many ids to query. We suspect that users don't need this.
If you need this limit increased, please send us a message
'404':
description: "**Not found.** The requested location does not have a calendar"
content:
text/plain:
schema:
type: string
example: Not found
'503':
description: "**Not Ready.** please retry later"
content:
text/plain:
schema:
type: string
example: Waiting for first sync with TUMonline
"/api/feedback/feedback":
post:
tags:
- feedback
summary: Post feedback
description: |-
***Do not abuse this endpoint.***
This posts the actual feedback to GitHub and returns the GitHub link.
This API will create issues instead of pull-requests
=> all feedback is allowed, but [`/api/feedback/propose_edits`](#tag/feedback/operation/propose_edits) is preferred, if it can be posted there.
For this Endpoint to work, you need to generate a token via the [`/api/feedback/get_token`](#tag/feedback/operation/get_token) endpoint.
# Note
Tokens are only used if we return a 201 Created response.
Otherwise, they are still valid
operationId: send_feedback
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/PostFeedbackRequest"
required: true
responses:
'201':
description: The feedback has been **successfully posted to GitHub**. We
return the link to the GitHub issue.
content:
text/plain:
schema:
type: string
format: uri
example: https://github.com/TUM-Dev/navigatum/issues/9
'400':
description: "**Bad Request.** Not all fields in the body are present as
defined above"
'403':
description: |-
**Forbidden.** Causes are (delivered via the body):
- `Invalid token`: You have not supplied a token generated via the `gen_token`-Endpoint.
- `Token not old enough, please wait`: Tokens are only valid after 10s.
- `Token expired`: Tokens are only valid for 12h.
- `Token already used`: Tokens are non reusable/refreshable single-use items.
content:
text/plain:
schema:
type: string
'422':
description: "**Unprocessable Entity.** Subject or body missing or too short."
'451':
description: "**Unavailable for legal reasons.** Using this endpoint without
accepting the privacy policy is not allowed. For us to post to GitHub,
this has to be `true`"
'500':
description: "**Internal Server Error.** We have a problem communicating
with GitHubs servers. Please try again later"
'503':
description: "**Service unavailable.** We have not configured a GitHub Access
Token. This could be because we are experiencing technical difficulties
or intentional. Please try again later."
"/api/feedback/get_token":
post:
tags:
- feedback
summary: Get a feedback-token
description: |-
***Do not abuse this endpoint.***
This returns a JWT token usable for submitting feedback.
You should request a token, ***if (and only if) a user is on a feedback page***
As a rudimentary way of rate-limiting feedback, this endpoint returns a token.
To post feedback, you will need this token.
Tokens gain validity after 5s, and are invalid after 12h of being issued.
They are not refreshable, and are only valid for one usage.
# Note:
Global Rate-Limiting allows bursts with up to 20 requests and replenishes 50 requests per day
operationId: get_token
responses:
'201':
description: "**Created** a usable token"
content:
application/json:
schema:
"$ref": "#/components/schemas/TokenResponse"
'429':
description: "**Too many requests.** We are rate-limiting everyone's requests,
please try again later."
'503':
description: "**Service unavailable.** We have not configured a GitHub Access
Token. This could be because we are experiencing technical difficulties
or intentional. Please try again later."
"/api/feedback/propose_edits":
post:
tags:
- feedback
summary: Post Edit-Requests
description: |-
***Do not abuse this endpoint.***
This posts the actual feedback to GitHub and returns the github link.
This API will create pull-requests instead of issues => only a subset of feedback is allowed.
For this Endpoint to work, you need to generate a token via the [`/api/feedback/get_token`](#tag/feedback/operation/get_token) endpoint.
# Note:
Tokens are only used if we return a 201 Created response. Otherwise, they are still valid
operationId: propose_edits
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/EditRequest"
required: true
responses:
'201':
description: The edit request feedback has been **successfully posted to
GitHub**. We return the link to the GitHub issue.
content:
text/plain:
schema:
type: string
format: uri
example: https://github.com/TUM-Dev/navigatum/issues/9
'400':
description: "**Bad Request.** Not all fields in the body are present as
defined above"
'403':
description: |-
**Forbidden.** Causes are (delivered via the body):
- `Invalid token`: You have not supplied a token generated via the `gen_token`-Endpoint.
- `Token not old enough, please wait`: Tokens are only valid after 10s.
- `Token expired`: Tokens are only valid for 12h.
- `Token already used`: Tokens are non reusable/refreshable single-use items.
'422':
description: "**Unprocessable Entity.** Subject or body missing or too short."
'451':
description: "**Unavailable for legal reasons.** Using this endpoint without
accepting the privacy policy is not allowed. For us to post to GitHub,
this has to be true"
'500':
description: "**Internal Server Error.** We have a problem communicating
with GitHubs servers. Please try again later."
'503':
description: Service unavailable. We have not configured a GitHub Access
Token. This could be because we are experiencing technical difficulties
or intentional. Please try again later.
"/api/locations/{id}":
get:
tags:
- locations
summary: Get entry-details
description: |-
This returns the full data available for the entry (room/building).
This is more data, that should be supplied once a user clicks on an entry.
Preloading this is not an issue on our end, but keep in mind bandwith constraints on your side.
The data can be up to 50kB (using gzip) or 200kB unzipped.
More about this data format is described in the NavigaTUM-data documentation
operationId: get_handler
parameters:
- name: id
in: path
description: ID of the location
required: true
schema:
type: string
- name: lang
in: query
description: The language you want your preview to be in. If either this or
the query parameter is set to en, this will be delivered.
required: false
schema:
type: string
enum:
- de
- en
responses:
'200':
description: "**Details** about the **location**"
content:
application/json:
schema:
"$ref": "#/components/schemas/LocationDetailsResponse"
'404':
description: "**Not found.** Make sure that requested item exists"
content:
text/plain:
schema:
type: string
example: Not found
"/api/locations/{id}/nearby":
get:
tags:
- locations
summary: Get the nearby items
description: Shows nearby POIs like public transport stations
operationId: nearby_handler
parameters:
- name: id
in: path
description: ID of a location
required: true
schema:
type: string
responses:
'200':
description: Things **nearby to the location**
content:
application/json:
schema:
"$ref": "#/components/schemas/NearbyLocationsResponse"
'404':
description: "**Not found.** Make sure that requested item exists"
content:
text/plain:
schema:
type: string
example: Not found
"/api/locations/{id}/preview":
get:
tags:
- locations
summary: Get a entry-preview
description: |-
This returns a 1200x630px preview for the location (room/building/..).
This is usefully for implementing custom OpenGraph images for detail previews.
operationId: maps_handler
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: lang
in: query
required: false
schema:
type: string
enum:
- de
- en
- name: format
in: query
required: false
schema:
type: string
enum:
- open_graph
- square
responses:
'200':
description: "**Preview image**"
content:
image/png: {}
'404':
description: "**Not found.** Make sure that requested item exists"
content:
text/plain:
schema:
type: string
example: Not found
"/api/maps/indoor":
get:
tags:
- maps
summary: Lists indoor maps in bounding box
description: Returns all the available maps for a given bbox
operationId: list_indoor_maps
parameters:
- name: bbox
in: query
description: |-
Requires the bbox to be 4 floating point numbers of format `"y,x,y,x"`
Bounding box according to <https://datatracker.ietf.org/doc/html/rfc7946#section-5>
required: true
schema:
type: string
responses:
'200':
description: "**List indoor maps** in bounding box"
content:
application/json:
schema:
type: array
items:
"$ref": "#/components/schemas/RemoteMap"
'400':
description: "**Bad Request.** Please check that the input provided matches
above."
content:
text/plain:
schema:
type: string
example: the bbox-parameter needs 4 floating point numbers of format
y,x,y,x
"/api/maps/indoor/{id}":
get:
tags:
- maps
summary: Get indoor features
description: Get all features of a certain indoor map
operationId: get_indoor_map
parameters:
- name: id
in: path
description: ID of the indoor map
required: true
schema:
type: integer
format: int64
responses:
'200':
description: "**Indoor features** as GeoJSON"
content:
application/json: {}
'404':
description: "**Not found.** The requested location does not have a calendar"
content:
text/plain:
schema:
type: string
example: Not found
"/api/maps/route":
get:
tags:
- maps
summary: Routing requests
description: |-
**API IS EXPERIMENTAL AND ACTIVELY SUBJECT TO CHANGE**
The user specifies using provided origin (`from`) and destination (`to`) locations and a transport mode (`route_costing`) to tune their routing between the two locations.
The costing is fine-tuned by the server side accordingly.
Internally, this endpoint relies on
- [Valhalla](https://github.com/valhalla/valhalla) for routing for route calculation
- our database to resolve ids.
You will need to look the ids up via [`/api/search`](#tag/locations/operation/search_handler) beforehand.
**Note:** [`/api/search`](#tag/locations/operation/search_handler) does support both university internal routing and external addressing.
**In the future (i.e. public transit routing currently is not implemented)**, it will als rely on either
- [OpenTripPlanner2](https://www.opentripplanner.org/) or
- [Motis](https://github.com/motis-project/motis)
operationId: route_handler
parameters:
- name: lang
in: query
required: false
schema:
type: string
enum:
- de
- en
- name: from
in: query
description: Start of the route
required: true
schema:
type: string
- name: to
in: query
description: Destination of the route
required: true
schema:
type: string
- name: route_costing
in: query
description: Transport mode the user wants to use
required: true
type: sting
enum:
- pedestrian
- bicycle
- motorcycle
- car
- public_transit
- name: pedestrian_type
in: query
description: Does the user have specific walking restrictions?
required: false
type: string
enum:
- none
- blind
- wheelchair
- name: ptw_type
in: query
description: Does the user prefer mopeds or motorcycles for powered two-wheeled
(ptw)?
required: false
type: string
enum:
- motorcycle
- moped
- name: bicycle_type
in: query
description: Which kind of bicycle do you ride?
required: false
type: string
enum:
- road
- hybrid
- cross
- mountain
responses:
'200':
description: "**Routing solution**"
content:
application/json:
schema:
"$ref": "#/components/schemas/RoutingResponse"
'404':
description: "**Not found.** The requested location does not exist"
content:
text/plain:
schema:
type: string
example: Not found
"/api/openapi.json":
get:
summary: Openapi service definition
description: Usefull for consuming in external openapi tooling
operationId: openapi_doc
responses:
'200':
description: The openapi definition
content:
application/json: {}
"/api/search":
get:
tags:
- locations
summary: Search entries
description: |-
This endpoint is designed to support search-as-you-type results.
Instead of simply returning a list, the search results are returned in a way to provide a richer experience by splitting them up into sections. You might not necessarily need to implement all types of sections, or all sections features (if you just want to show a list). The order of sections is a suggested order to display them, but you may change this as you like.
Some fields support highlighting the query terms and it uses \x19 and \x17 to mark the beginning/end of a highlighted sequence.
(See [Wikipedia](https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Modified_C0_control_code_sets)).
Some text-renderers will ignore them, but in case you do not want to use them, you might want to remove them from the responses via empty `pre_highlight` and `post_highlight` query parameters.
operationId: search_handler
parameters:
- name: q
in: query
description: |-
string you want to search for.
The amounts returned can be controlled using the `limit\*` paramerters.
The following query-filters are supported:
- `in:<parent>`/`@<parent>`: Only return rooms in the given parent (e.g. `in:5304` or `in:garching`)
- `usage:<type>`/`nutzung:<usage>`/`=<usage>`: Only return entries of the given usage (e.g. `usage:wc` or `usage:büro`)
- `type:<type>`: Only return entries of the given type (e.g. `type:building` or `type:room`)
- `near:<lat>,<lon>`: prioritise sorting the entries by distance to a coordinate
required: true
schema:
type: string
- name: search_addresses
in: query
description: |-
Include adresses in the saerch
Be aware that Nominatim (which we use to do this search) is really slow (~100ms).
Only activate this when you really need it.
required: false
schema:
type:
- boolean
- 'null'
- name: limit_buildings
in: query
description: |-
Maximum number of buildings/sites to return.
Clamped to `0`..`1000`.
If this is a problem for you, please open an issue.
required: false
schema:
type:
- integer
- 'null'
minimum: 0
- name: limit_rooms
in: query
description: |-
Maximum number of rooms to return.
Clamped to `0`..`1000`.
If this is an problem for you, please open an issue.
required: false
schema:
type:
- integer
- 'null'
minimum: 0
- name: limit_all
in: query
description: |-
Maximum number of results to return.
Clamped to `1`..`1000`.
If this is an problem for you, please open an issue.
required: false
schema:
type:
- integer
- 'null'
minimum: 0
- name: pre_highlight
in: query
description: |-
string to include in front of highlighted sequences.
If this and `post_highlight` are empty, highlighting is disabled.
For background on the default values, please see [Wikipedia](https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Modified_C0_control_code_sets)).
required: false
schema:
type:
- string
- 'null'
- name: post_highlight
in: query
description: |-
string to include after the highlighted sequences.
If this and `pre_highlight` are empty, highlighting is disabled.
For background on the default values, please see [Wikipedia](https://en.wikipedia.org/wiki/C0_and_C1_control_codes#Modified_C0_control_code_sets)).
required: false
schema:
type:
- string
- 'null'
responses:
'200':
description: Search entries
content:
application/json:
schema:
"$ref": "#/components/schemas/SearchResponse"
'400':
description: "**Bad Request.** Not all fields in the body are present as
defined above"
content:
text/plain:
schema:
type: string
example: 'Query deserialize error: invalid digit found in string'
'404':
description: "**Not found.** `q` is empty. Since searching for nothing is
nonsensical, we dont support this."
content:
text/plain:
schema:
type: string
example: Not found
'414':
description: "**URI Too Long.** The uri you are trying to request is unreasonably
long. Search querys dont have thousands of chars.."
content:
text/plain:
schema:
type: string
"/api/status":
get:
summary: API healthcheck
description: |-
If this endpoint does not return 200, the API is experiencing a catastrophic outage.
**Should never happen.**
operationId: health_status_handler
responses:
'200':
description: API is **healthy**
content:
text/plain:
schema:
type: string
example: |-
healthy
source_code: https://github.com/TUM-Dev/navigatum/tree/{hash}
'503':
description: API is **NOT healthy**
content:
text/plain:
schema:
type: string
example: |-
unhealthy
source_code: https://github.com/TUM-Dev/navigatum/tree/{hash}
components:
schemas:
Arguments:
type: object
required:
- ids
- start_after
- end_before
properties:
end_before:
type: string
format: date-time
description: The last allowed time the calendar would like to display
examples:
- '2039-01-19T03:14:07+01:00'
- 2042-01-07T00:00:00 UTC
ids:
type: array
items:
type: string
description: |-
ids you want the calendars for
Limit of max. 10 ids is arbitraryly chosen, if you need this limit increased, please contact us
example:
- 5605.EG.011
- 5510.02.001
- 5606.EG.036
- '5304'
maxItems: 10
minItems: 1
start_after:
type: string
format: date-time
description: The first allowed time the calendar would like to display
examples:
- '2039-01-19T03:14:07+01:00'
- 2042-01-07T00:00:00 UTC
BuildingsOverviewItemResponse:
type: object
required:
- id
- name
- subtext
properties:
id:
type: string
description: The id of the entry
name:
type: string
description: Human display name
subtext:
type: string
description: What should be displayed below this Building
thumb:
type:
- string
- 'null'
description: The thumbnail for the building
BuildingsOverviewResponse:
type: object
required:
- entries
- n_visible
properties:
entries:
type: array
items:
"$ref": "#/components/schemas/BuildingsOverviewItemResponse"
n_visible:
type: integer
format: int32
minimum: 0
CalendarLocationResponse:
type: object
required:
- key
- name
- type_common_name
- type
properties:
calendar_url:
type:
- string
- 'null'
description: Link to the calendar of the room
examples:
- https://campus.tum.de/tumonline/tvKalender.wSicht?cOrg=19691&cRes=12543&cReadonly=J
- https://campus.tum.de/tumonline/tvKalender.wSicht?cOrg=19691&cRes=12559&cReadonly=J
key:
type: string
description: |-
Structured, globaly unique room code
Included to enable multi-room calendars.
Format: BUILDING.LEVEL.NUMBER
examples:
- 5602.EG.001
- 5121.EG.003
last_calendar_scrape_at:
type:
- string
- 'null'
format: date-time
description: last time the calendar was scraped for this room
examples:
- '2039-01-19T03:14:07+01:00'
- 2042-01-07T00:00:00 UTC
name:
type: string
description: name of the entry in a human-readable form
examples:
- 5602.EG.001 (MI HS 1, Friedrich L. Bauer Hörsaal)
- 5121.EG.003 (Computerraum)
type:
type: string
description: |-
type of the entry
TODO document as a n enum with the following choices:
- `room`
- `building`
- `joined_building`
- `area`
- `site`
- `campus`
- `poi`
examples:
- room
- building
- joined_building
- area
- site
- campus
- poi
type_common_name:
type: string
description: Type of the entry in a human-readable form
examples:
- Serverraum
- Büro
ComputedPropResponse:
type: object
required:
- name
- text
properties:
extra:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/ExtraComputedPropResponse"
name:
type: string
examples:
- Raumkennung
text:
type: string
examples:
- 5602.EG.001
Coordinate:
type: object
required:
- lat
- lon
properties:
lat:
type: number
format: double
description: Latitude
example: 48.26244490906312
lon:
type: number
format: double
description: Longitude
example: 48.26244490906312
CoordinateAccuracyResponse:
type: string
enum:
- building
CoordinateResponse:
type: object
required:
- lat
- lon
- source
properties:
accuracy:
oneOf:
- type: 'null'
- "$ref": "#/components/schemas/CoordinateAccuracyResponse"
description: |-
How accurate the coordinate is.
Only present, if it is limited to a degree (e.g. we only know the building)
lat:
type: number
format: double
description: Latitude
example: 48.26244490906312
lon:
type: number
format: double
description: Longitude
example: 48.26244490906312
source:
"$ref": "#/components/schemas/CoordinateSourceResponse"
description: Source of the Coordinates
CoordinateSourceResponse:
type: string
enum:
- navigatum
- roomfinder
- inferred
DefaultMapsResponse:
type: string
enum:
- interactive
- roomfinder
EditRequest:
type: object
required:
- token
- edits
- additional_context
- privacy_checked
properties:
additional_context:
type: string
description: |-
Additional context for the edit.
Will be displayed in the discription field of the PR
example: I have a picture of the room, please add it to the roomfinder
edits:
"$ref": "#/components/schemas/LimitedHashMap_String_Edit"
description: The edits to be made to the room. The keys are the ID of the
props to be edited, the values are the proposed Edits.
privacy_checked:
type: boolean
description: |-
Whether the user has checked the privacy-checkbox.
We are posting the feedback publicly on GitHub (not a EU-Company).
**You MUST also include such a checkmark.**
token:
type: string
description: The JWT token, that can be used to generate feedback
example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2Njk2MzczODEsImlhdCI6MTY2OTU5NDE4MSwibmJmIjoxNjY5NTk0MTkxLCJraWQiOjE1ODU0MTUyODk5MzI0MjU0Mzg2fQ.sN0WwXzsGhjOVaqWPe-Fl5x-gwZvh28MMUM-74MoNj4
EventResponse:
type: object
required:
- id
- room_code
- start_at
- end_at
- title_de
- title_en
- entry_type
- detailed_entry_type
properties:
detailed_entry_type:
type: string
description: For some Entrys, we do have more information (what kind of
a `lecture` is it? What kind of an other `entry` is it?)
examples:
- Abhaltung
end_at:
type: string
format: date-time
description: end of the entry
examples:
- '2019-01-01T00:00:00'
entry_type:
"$ref": "#/components/schemas/EventTypeResponse"
description: |-
What this calendar entry means.
Each of these should be displayed in a different color
id:
type: integer
format: int32
description: ID of the calendar entry used in TUMonline internally
examples:
- 6424
room_code:
type: string
description: |-
Structured, globaly unique room code
Included to enable multi-room calendars.
Format: BUILDING.LEVEL.NUMBER
examples:
- 5602.EG.001
- 5121.EG.003
start_at:
type: string
format: date-time
description: start of the entry
examples:
- '2018-01-01T00:00:00'
stp_type:
type:
- string
- 'null'
description: Lecture-type
examples:
- Vorlesung mit Zentralübung
title_de:
type: string
description: German title of the Entry
examples:
- Quantenteleportation
title_en:
type: string
description: English title of the Entry