The Flask web app for REST endpoints for the PittAPI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apiwrapper
docs
tests
.coveragerc
.gitignore
.travis.yml
LICENSE
README.md
requirements.txt
server.py

README.md

Web Wrapper for PittAPI

Build Status License GPLv2 Python 3.4, 3.5

Installation

  1. Clone this repo
  2. Create a virtual environment virtualenv venv and enable it. source venv/bin/activate
  3. Run pip install -r requirements.txt to install dependencies.
  4. Launch python server.py to run the server.

API Endpoints

Courses

/courses/<term>/<code>

Classes

/class/<class_number>/<term>

Lab Status

/lab_status/<lab_name>

Laundry Status

For simple laundry status:

/laundry/simple/<location>

For detailed laundry status:

/laundry/detailed/<location>

People

/people/<query>

Shuttles

For shuttle routes:

/shuttle/routes

For shuttle vehicle points:

/shuttle/points

For shuttle arrivals:

/shuttle/arrivals/<times_per_stop>

For shuttle stop estimates:

/shuttle/estimates/<vehicle_id>/<quantity>

Textbooks

If the term is to be specified:

/textbook/<department_code>/<course_name>/<instructor>/<term>

If the term is not to be specified:

/textbook/<department_code>/<course_name>/<instructor>

News

/news/<feed>/<max_news_items>

License

Web Wrapper for PittAPI, web app for REST endpoints for the PittAPI
Copyright (C) 2015 Ritwik Gupta

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.