Skip to content

v1.0.0-rc.2

Compare
Choose a tag to compare
@ecxyzzy ecxyzzy released this 15 Aug 17:00
· 92 commits to main since this release

What's Changed

Courses/Instructors Filtering GA

Filtering is now generally available for querying courses and instructors; no longer are you constrained to fetching them individually by course number/UCInetID.

For instance, you can get all courses under the COMPSCI department with the following query:

curl "https://api-next.peterportal.org/v1/rest/courses?department=COMPSCI"

Or, equivalently, in GraphQL:

query {
  courses(department: "COMPSCI") {
    id
  }
}

As for filtering instructors, you can get all faculty affiliated with the Computer Science department like so:

curl "https://api-next.peterportal.org/v1/rest/instructors?departmentContains=Computer%20Science"

Or, equivalently, in GraphQL:

query {
  instructors(departmentContains: "Computer Science") {
    ucinetid
  }
}

For more examples, check out the documentation here.

Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2