Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2014 16:19
Show Gist options
  • Save anonymous/9393295 to your computer and use it in GitHub Desktop.
Save anonymous/9393295 to your computer and use it in GitHub Desktop.
STW API proposals
[
{
"date": "2014-03-06",
"nameGerman": "Rinderschmorbraten mit Orange und Rosmarin",
"nameEnglish": "Translated Rinderschmorbraten mit Orange und Rosmarin",
"category": "LUNCH",
"priceStudents": 1.6,
"priceWorkers": 2.7,
"priceGuests": 3.2,
"allergens": [
"3",
"4",
"A9"
],
"order_info": 0,
"badges": [],
"restaurant": "Mensa"
},
{
"date": "2014-03-06",
"nameGerman": "Thai-Pasta mit Spitzkohl",
"nameEnglish": "translated Thai-Pasta mit Spitzkohl",
"type": "LUNCH",
"priceStudents": 1.6,
"priceWorkers": 2.7,
"priceGuests": 3.2,
"allergens": [
"2",
"3",
"4",
"A1",
"A5",
"38"
],
"order_info": 0,
"badges": [
"VEGAN"
],
"restaurant": "Mensa"
}
]
[
{
"date": "2014-03-06",
"name": "Rinderschmorbraten mit Orange und Rosmarin",
"category": "Hauptspeise",
"priceStudents": 1.6,
"priceWorkers": 2.7,
"priceGuests": 3.2,
"allergens": [
"3 - mit Text beschrieben",
"4 - mit Text beschrieben",
"A9 - mit Text beschrieben"
],
"order_info": 0,
"badges": [],
"restaurant": "Mensa"
},
{
"date": "2014-03-06",
"name": "Thai-Pasta mit Spitzkohl",
"type": "Hauptspeise",
"priceStudents": 1.6,
"priceWorkers": 2.7,
"priceGuests": 3.2,
"allergens": [
"2 - mit Text beschrieben",
"3 - mit Text beschrieben",
"4 - mit Text beschrieben",
"A1 - mit Text beschrieben",
"A5 - mit Text beschrieben",
"38 - mit Text beschrieben"
],
"order_info": 0,
"badges": [
"vegan"
],
"restaurant": "Mensa"
}
]
[
{
"name": "Mensa",
"openingTimes": {
"2014-02-26": null,
"2014-02-28": null,
"2014-03-01": null,
"2014-03-02": null,
"2014-03-03": "11:15 - 14:00",
"2014-03-04": "11:15 - 14:00",
"2014-03-05": "11:15 - 14:00",
"2014-03-06": "11:15 - 14:00",
"2014-03-07": "11:00 - 14:30",
"2014-03-08": null,
"2014-03-09": null,
"2014-03-10": "11:15 - 14:00",
"2014-03-11": "11:15 - 14:00",
"2014-03-12": "11:15 - 14:00"
}
},
{
"name": "Bistro Hotspot",
"openingTimes": {
"2014-02-26": "09:00 - 17:00",
"2014-02-28": "09:00 - 17:00",
"2014-03-01": "11:00 - 17:00",
"2014-03-02": "11:00 - 17:00",
"2014-03-03": "09:00 - 15:30",
"2014-03-04": "09:00 - 17:00",
"2014-03-05": "09:00 - 17:00",
"2014-03-06": "09:00 - 17:00",
"2014-03-07": "09:00 - 17:00",
"2014-03-08": "11:00 - 17:00",
"2014-03-09": "11:00 - 17:00",
"2014-03-10": "09:00 - 15:30",
"2014-03-11": "09:00 - 17:00",
"2014-03-12": "09:00 - 17:00"
},
"lunchTime": "11:30 - 14:00"
}
]
[
{
"name": "Mensa",
"menus": true,
"openingTimes": true
},
{
"name": "Abendmensa",
"menus": true,
"openingTimes": true
},
{
"name": "Mensula",
"menus": true,
"openingTimes": true
},
{
"name": "BistroHotspot",
"menus": true,
"openingTimes": true
},
{
"name": "Gownsmen's Pub",
"menus": true,
"openingTimes": true
},
{
"name": "MensaBasilicaHamm",
"menus": true,
"openingTimes": true
}
]
@ironjan
Copy link

ironjan commented Mar 10, 2014

As alternative for openingtimes

[
    {
        "name": "Mensa",
        "times": {
            "MO": "11:45 - 13:30",
            "TU": " 11:45 - 13:30"
        }
    },
    {
        "name": "Abendmensa",
        "times": {
            "MO": "17:30 - 19:30",
            "closedEnglish": "closed in semester break",
            "closedGerman": "in den Semesterferien geschlossen"
        }
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment