This is a work in progress.
This is a REST API for the University of Pittsburgh. It is not affiliated with the University of Pittsburgh in any way.
If you want to run this in a docker container everything will be all set :) If you want to run this locally, you will need to install the following dependencies:
- tzdata (for timezones)
-
/v1/api/courses
- Base endpoint for all courses related endpoints- POST:
/courses/info
- Get information about many courses- Request Body (All non-required fields are optional and will be assumed):
-
term
- The term to get courses for. Required. -
subject
- The subject to get courses for -
campus
- The campus to get courses for -
enrollment_status
- The enrollment status to get courses for -
pageNumber
- The page number the courses are on- Code Example in JavaScript:
const body = { term: '2234', subject: 'CS', campus: 'UPJ', enrollment_status: 'O', pageNumber: 1 } fetch('https://pittapi.example.com/v1/api/courses/info', { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' } })
- Code Example in JavaScript:
-
- Response Body:
courses
- Array of course objects that are on that page or page 1 if none specified
- Request Body (All non-required fields are optional and will be assumed):
- POST:
-
/v1/api/course
- Base endpoint for all courses related endpoints- GET
/:term/:number
- Get information about a course- Get Parameters:
term
- The term to get the course fornumber
- The course number to get the course for- Code Example in JavaScript:
fetch('https://pittapi.example.com/v1/api/course/2234/12345')
- Code Example in JavaScript:
- Response Body:
course
- The course object
- Get Parameters:
- GET
-
/v1/api/laundry
- GET
/:dormitory
- Get information about all laundry machines in a dormitory - Get Parameters:
dormitory
- The dormitory to get laundry information for- Code Example in JavaScript:
fetch('https://pittapi.example.com/v1/api/laundry/willow')
- Code Example in JavaScript:
- Response Body:
course
- The course object
- GET