Skip to content
/ lunchAPI Public

API serving lunch of some restaurants / canteens placed in Karlsruhe

Notifications You must be signed in to change notification settings

lwluc/lunchAPI

Repository files navigation

The Lunchbot

This API serves the lunch of some restaurants / canteens placed in Oststadt in Karlsruhe.

Feel free to add your favorite places!

Take a look at mensa-moltke.js or zwiebel.js and write your own script crawling the lunch of your favorite place.
There are only four things your file should export:

  1. A name, preferable the one of the restaurant (it has to be unique!)
  2. A website URL of the restaurant
  3. The latitude and longitude as object like this: { lat: 49.004956, lng: 8.425534 }
  4. A get() function returning the lunch as string

Done!

The API

/getAll
Serves a JSON object with all restaurants and their dishes.

/get?restaurants=Mensa,MRI-Casino,...
Serves a JSON object containing all restaurants and their dishes which are set in the PATH-Param.

/restaurants
Serves a list of supported restaurants as Objects with properties name and website.

/menu
Serve all from /getAll but as html

Why do we need this?

We use this API to load the daily lunch for our Slack-Lunchbot.
Try it out!

Authors

Luc Weinbrecht @lwluc Timo Schneider @tschneid

About

API serving lunch of some restaurants / canteens placed in Karlsruhe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages