SFUFlow / SFUCompass

“By failing to prepare, you are preparing to fail.” ― Benjamin Franklin
https://sfu-compass.vercel.app
GNU General Public License v3.0
0 stars 0 forks source link

add postman test collection to fetch sfu courses data #44

Open jerrydngzh opened 1 year ago

jerrydngzh commented 1 year ago

How to install Postman:

What I did:

Discoveries:

  1. Course antirequisites is returned in a "notes" section, meaning we need to do some parsing to get just the course name/number + all other general antirequisites
  2. There will be missing fields returned when making a request for a course section. Will vary between courses requested
  3. Courses data is organized like a folder: year/term/department/courseNumber/courseSection. Meaning, for example, to get all professors of a course's section you would need to call all specific course sections and fetch that data out of each response

How to test:

  1. Import the postman test collection in the files or see instructions under "How to install Postman". The collection will be there already under the postman account I've setup
  2. Send a request and inspect the data