Skip to content

Latest commit

 

History

History
211 lines (180 loc) · 3.78 KB

subject_catalog_number_prerequisites.md

File metadata and controls

211 lines (180 loc) · 3.78 KB

Course Prerequisites

GET /courses/{subject}/{catalog_number}/prerequisites.{format}

Description

This method returns parsed and raw representation of prerequsites for a given course

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1181 Enabled Yes
Service Name courses Service ID 239
Information Steward Registrar Data Type Scraped
Update Frequency Every request (live) Cache Time 0 seconds

Notes

Sources

Parameters

GET /courses/{subject}/{catalog_number}/prerequisites.{format}
Parameter Type Required Description
subject input yes Valid uWaterloo subject name
catalog_number input yes Valid uWaterloo course number
format input yes The format of the output
key filter yes Valid API key
callback filter no JSONP callback format

Output Formats

  • json
  • xml

Examples

GET /courses/{subject}/{catalog_number}/prerequisites.{format}

Response

Field Name Type Value Description
subject string Requested subject acronym
catalog_number string Registrar assigned class number
title string Class name and title
prerequisites number Raw listing of course prerequisites
prerequisites_parsed list Parsed prerequisites

Any value can be null

Output

JSON

{
  "meta":{
    "requests":117,
    "timestamp":1381955389,
    "status":200,
    "message":"Request successful",
    "method_id":1181,
    "version":2.07,
    "method":{
      
    }
  },
  "data":{
    "subject":"PHYS",
    "catalog_number":"375",
    "title":"Stars",
    "prerequisites":"Prereq: PHYS 112 or 122 and two of PHYS 234, 241, 242, 256, 258\/358, 263, 275",
    "prerequisites_parsed":[
      [
        1,
        "PHYS112",
        "PHYS122"
      ],
      [
        2,
        "PHYS234",
        "PHYS241",
        "PHYS242",
        "PHYS256",
        [
          1,
          "PHYS258",
          "PHYS358"
        ],
        "PHYS263",
        "PHYS275"
      ]
    ]
  }
}