Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.86 KB

File metadata and controls

30 lines (23 loc) · 1.86 KB

AUTH Weakly Menu API

The purpose of this API is to weekly parse&cache the AUTH's menu from this webpage and have endpoints available to the public so users can create Google Assistant and Siri shortcuts or Bots for apps like Discord.

Endpoint Method Description Params Available
/api/menu GET Get menu for the whole week
/api/menu/today GET Get menu for today description1
/api/menu/weekday/:day GET Get menu for specific weekday day is an int, 1->Monday ... 7->Sunday description1
/api/menu/fetch GET Try to fetch menu from webpage

Take a look at the example to see the structure of the response

An instance of this API is hosted at lesxi.johnstef.com

Siri shortcut: download (You need to enable untrusted shortcuts from settings)

Footnotes

  1. If description is true the api will return just one string for lunch and one for dinner

    {
      "date": "2022-02-18T00:00:00Z",
      "dinner": "- Ριζότο μανιταριών\n- Αγγουροντομάτα\n  Κουνουπίδι ατμού\n- Θρ..",
      "lunch": "- Κολοκύθια τηγανητά με τζατζίκι\n- Αγγουροντομάτα\n  Κουνουπίδι.."
    }
    
    ↩ ↩2