Skip to content

Scraper class data structure

Sallar Kaboli edited this page Feb 24, 2016 · 2 revisions

Each scraper should return this structure from it’s getMenu method (a promise):

{
    "YYYY-MM-DD": [
        {
            "title": "Food Name",
            "lang": "en"
        },
        {
            "title": "Ruoka Nimi",
            "lang": "fi"
        },
        ...
    ],
    "YYYY-MM-DD": [
        ...
    ]
}
Clone this wiki locally