Uni-oth_mensa_api
This node application is a json-wrapper around the inofficial API for different canteens of the university (and university of applied sciences) in Regensburg, germany.
The original API is kind of unhandy, as it serves its weekly data in the csv
format. To improve the handling for more simple applications, this wrapper allows more routes and serves its data in the json
format.
The following canteens are supported:
- OTH
- OTH evening / abends
- University (Sammelgebäude)
- Prüfening
Build
Pull required dependencies:
$ npm install
Run
Start the application:
$ npm run start
Example execution:
$ npm run start > uni-oth_mensa_api@1.0.0 start /Users/lukas/Git/Untracked/Javascript/uni-oth_mensa_api> nodemon lib/server.js [nodemon] 1.18.4[nodemon] to restart at any time, enter `rs`[nodemon] watching: *.*[nodemon] starting `node lib/server.js` Updating local cacheUni-oth_mensa_api started on port: 3000Try http://localhost:3000/mensa/uni/mo
Usage
Whole menu for current week
/mensa/:location
Possible location values:
uni
oth
oth-evening
pruefening
Menu for specific weekday
/mensa/:location/:day
Possible location values:
uni
oth
oth-evening
pruefening
Possible day values:
monday
tuesday
wednesday
thursday
friday
saturday
sunday
Example
Get menu for the university canteen of this weeks monday:
GET /mensa/uni/monday
Credits
This application is heavily inspired by @alexanderbazo's URMensa-JSON-API project.