KOPPS API for Organization
Following endpoints return information related to Schools and Departments in KOPPS. The default language is Swedish, but English can be selected by a query argument(?l=en)
Schools
/api/kopps/v2/schools
Returns a list of all schools
Examples:
/api/kopps/v2/schools
/api/kopps/v2/schools?l=en
/api/kopps/v2/schools/departments
Returns a list of departments having courses. The departments are grouped by school. If the flag listForActiveCourses is set to true, only departments having active courses would be returned
Parameter | Mandatory | Possible Values |
---|---|---|
department_criteria | Yes | has_courses, has_third_cycle_courses |
listForActiveCourses | No | true, false. If parameter not set, the flag is treated as false |
Examples:
/api/kopps/v2/schools/departments?department_criteria=has_third_cycle_courses
/api/kopps/v2/schools/departments?department_criteria=has_courses&l=en
/api/kopps/v2/schools/departments?department_criteria=has_courses&listForActiveCourses=true
/api/kopps/v2/schools/{<[A-Za-z]{3,4}>schoolCode}/courses/{<[0-9]{4}[1-2]{1}>term}/literature
Returns a list of course literature for courses which belong to given school and valid at the given term
Examples:
/api/kopps/v2/schools/EES/courses/20191/literature
/api/kopps/v2/schools/EECS/courses/20191/literature?l=en
Departments
/api/kopps/v2/departments
Returns a list of all departments
Examples:
/api/kopps/v2/departments
/api/kopps/v2/departments?l=en
/api/kopps/v2/departments.{l}.json
Returns a list of departments having courses. The courses may not be active. All courses which are not in state 'Cancelled' are being considered
The code
for each department is what can be used as a {departmentCode} in the Courses api
Examples:
/api/kopps/v2/departments.sv.json
/api/kopps/v2/departments.en.json
/api/kopps/>v2/departments/{<[A-Z0-9%]+>departmentCode}
Gets a department by department code
Examples:
/api/kopps/v2/departments/DD
/api/kopps/v2/departments/DD?l=en