Skip to content

Commit 5f21703

Browse files
committed
Document opening_hours field for the SLS API
1 parent 6dc2c69 commit 5f21703

File tree

1 file changed

+58
-7
lines changed

1 file changed

+58
-7
lines changed

source/includes/_mensa_api.md

Lines changed: 58 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,30 @@ curl "https://sls.api.stw-on.de/v1/location"
2525
"street": "Katharinenstraße 1",
2626
"zip": "38106",
2727
"city": "Braunschweig"
28-
}
28+
},
29+
"opening_hours": [
30+
{
31+
"time": "noon", // 'morning', 'noon' oder 'evening' für jeweils Morgen-, Mittags- und Abendmensa
32+
"start_day": 1, // 1 = Montag, 7 = Sonntag
33+
"end_day": 5,
34+
"start_time": "11:30:00",
35+
"end_time": "14:00:00"
36+
},
37+
{
38+
"time": "noon",
39+
"start_day": 6,
40+
"end_day": 6,
41+
"start_time": "11:30:00",
42+
"end_time": "14:00:00"
43+
},
44+
{
45+
"time": "evening",
46+
"start_day": 1,
47+
"end_day": 4,
48+
"start_time": "16:30:00",
49+
"end_time": "19:45:00"
50+
}
51+
]
2952
},
3053
{
3154
"id": 102,
@@ -36,7 +59,8 @@ curl "https://sls.api.stw-on.de/v1/location"
3659
"street": "Katharinenstraße 1",
3760
"zip": "38106",
3861
"city": "Braunschweig"
39-
}
62+
},
63+
"opening_hours": [...]
4064
},
4165
// ...
4266
]
@@ -65,7 +89,30 @@ curl "https://sls.api.stw-on.de/v1/location/101"
6589
"street": "Katharinenstraße 1",
6690
"zip": "38106",
6791
"city": "Braunschweig"
68-
}
92+
},
93+
"opening_hours": [
94+
{
95+
"time": "noon", // 'morning', 'noon' oder 'evening' für jeweils Morgen-, Mittags- und Abendmensa
96+
"start_day": 1, // 1 = Montag, 7 = Sonntag
97+
"end_day": 5,
98+
"start_time": "11:30:00",
99+
"end_time": "14:00:00"
100+
},
101+
{
102+
"time": "noon",
103+
"start_day": 6,
104+
"end_day": 6,
105+
"start_time": "11:30:00",
106+
"end_time": "14:00:00"
107+
},
108+
{
109+
"time": "evening",
110+
"start_day": 1,
111+
"end_day": 4,
112+
"start_time": "16:30:00",
113+
"end_time": "19:45:00"
114+
}
115+
]
69116
}
70117
```
71118

@@ -119,7 +166,8 @@ curl "https://sls.api.stw-on.de/v1/location/101/menu/2018-02-26?time=evening"
119166
"street": "Katharinenstraße 1",
120167
"zip": "38106",
121168
"city": "Braunschweig"
122-
}
169+
},
170+
"opening_hours": [...]
123171
},
124172
"time": "evening",
125173
"lane": {
@@ -162,7 +210,8 @@ curl "https://sls.api.stw-on.de/v1/location/101/menu/2018-02-26?time=evening"
162210
"street": "Katharinenstraße 1",
163211
"zip": "38106",
164212
"city": "Braunschweig"
165-
}
213+
},
214+
"opening_hours": [...]
166215
},
167216
"time": "evening",
168217
"lane": {
@@ -251,7 +300,8 @@ curl "https://sls.api.stw-on.de/v1/location/101/menu/2018-02-26/2018-02-28?time=
251300
"street": "Katharinenstraße 1",
252301
"zip": "38106",
253302
"city": "Braunschweig"
254-
}
303+
},
304+
"opening_hours": [...]
255305
},
256306
"time": "evening",
257307
"lane": {
@@ -294,7 +344,8 @@ curl "https://sls.api.stw-on.de/v1/location/101/menu/2018-02-26/2018-02-28?time=
294344
"street": "Katharinenstraße 1",
295345
"zip": "38106",
296346
"city": "Braunschweig"
297-
}
347+
},
348+
"opening_hours": [...]
298349
},
299350
"time": "evening",
300351
"lane": {

0 commit comments

Comments
 (0)