-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
29 lines (26 loc) · 954 Bytes
/
README
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
Node.js-baserad webapplikation för mobil-anpassad visning av veckans lunchmeny för restaurangerna Brigaden och Du-o-ja på Garnisonsområdet i Linköping.
Applikationen kör för närvarande på http://mat.waltersson.com
JSON API
För båda restaurangerna kan man lägga till /json i slutat av URL:en (t.ex. http://mat.waltersson.com/du-o-ja/json) för att få ut aktuell veckas meny i JSON-format. Formatet ser ut som följer:
{
"title": "Brigaden",
"header": "Brigaden Meny vecka 9",
"offers": [
{
"day": "Måndag",
"shortDay": "Må",
"dishes": [
"Viltsvinsprinskorv med stuvad spenat och ägghalva",
"Kalv & lammfärslimpa med 3 sorters pepparsås"
]
},
{
"day": "Tisdag",
"shortDay": "Ti",
"dishes": [
"Stekt fläsk med bruna bönor/löksås & kokt potatis",
"Pocherad fiskfilé med purjolök, hummersås & kokt potatis"
]
}
]
}