Skip to content

Basic menus

Developer From Jokela edited this page May 11, 2021 · 4 revisions

Basic menus are as the name tells, basic menus. They don't require special parameters or anything complex.

URL format for basic menus: /<menuprovider>/menu

Supported providers:

  • asikkala
  • syk
  • steiner
  • krtpl
  • tyk
  • phyk
  • looki (different URL, check wiki for details)
  • poytyaps
  • kauhajoki
  • pyhtaa
  • kastelli
  • ael
  • loviisa/paivakoti

Menu JSON Format is identical for all menu responses in Food Menu API. Example:

{
    "status": true,
    "menu": [
        {
            "date": "2021-04-05T00:00:00+03:00",
            "menus": [
                {
                    "name": "Lounas",
                    "meals": [
                        {
                            "id": "fb0cffb9d49e0bb5cdb19646ef6160a61fa5dbc3",
                            "name": "TOINEN PÄÄSIÄISPÄIVÄ"
                        }
                    ]
                }
            ]
        },
        {
            "date": "2021-04-06T00:00:00+03:00",
            "menus": [
                {
                    "name": "Lounas",
                    "meals": [
                        {
                            "id": "4ce56e43abe35b8a6a277adf6e5cb8036026c33e",
                            "name": "Porkkanapihvit M,G,K"
                        },
                        {
                            "id": "2f199148d85507ed9ea4172f1397ca74d510fed7",
                            "name": "Mantelikalaa M,K"
                        },
                        {
                            "id": "876fbd01f6559c4b6866e3d0228d2e9b3279ed9b",
                            "name": "keitettyä perunaa"
                        },
                        {
                            "id": "f83bae6a3f0f06021c1e0d1cea73a86de71249ff",
                            "name": "maissi-tomaattisalsaa"
                        }
                    ]
                }
            ]
        }
    ],
    "diets": [
        {
            "name": "VL",
            "description": "vähälaktoosinen"
        },
        {
            "name": "L",
            "description": "laktoositon"
        },
        {
            "name": "M",
            "description": "maidoton"
        },
        {
            "name": "G",
            "description": "gluteeniton"
        },
        {
            "name": "K",
            "description": "kananmunaton"
        }
    ]
}

If you're looking for error responses, check Common Responses page..

Clone this wiki locally