Giter Site home page Giter Site logo

fossabot / rgb-mensa_api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotwee/stwno-mensa_api

0.0 1.0 0.0 276 KB

A json-wrapper around the inofficial API for different canteens of the university (and university of applied sciences) in Regensburg, germany.

Home Page: https://rgb-mensa-api.herokuapp.com/

License: Do What The F*ck You Want To Public License

JavaScript 100.00%

rgb-mensa_api's Introduction

rgb-mensa_api

npm @latest dependencies Status devDependencies Status GitHub issues GitHub license FOSSA Status

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

> [email protected] start .
> node lib/server.js

Updating local cache
Uni-oth_mensa_api started on port: 3000
Try 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
today

Example

Get menu for the university canteen of this weeks monday:

GET /mensa/uni/monday
[{
    "name": "Feine Kräutersuppe",
    "date": "10.09.2018",
    "day": "monday",
    "category": "Suppe",
    "labels": ["V"],
    "details": ["3", "A", "G", "I", "AA"],
    "price": {
        "students": "0,70",
        "employees": "0,90",
        "guests": "1,40"
    }
}, {
    "name": "Hähnchenbrustfilet mit Pfefferrahm und Minirösti",
    "date": "10.09.2018",
    "day": "monday",
    "category": "HG3",
    "labels": ["G"],
    "details": ["3", "A", "G", "AA"],
    "price": {
        "students": "3,10",
        "employees": "3,90",
        "guests": "4,60"
    }
}, {
    "name": "Bio-Fusilli",
    "date": "10.09.2018",
    "day": "monday",
    "category": "B1",
    "labels": ["B", "VG"],
    "details": ["A", "AA"],
    "price": {
        "students": "0,80",
        "employees": "1,00",
        "guests": "1,50"
    }
}, ...]

Credits

This application is heavily inspired by @alexanderbazo's URMensa-JSON-API project.

License

Copyright (c) 2018 Lukas 'dotwee' Wolfsteiner

Licensed under the Do What The Fuck You Want To public license

FOSSA Status

rgb-mensa_api's People

Contributors

dotwee avatar fossabot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.