Class UCSBCurriculumController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.UCSBCurriculumController
@RestController
@RequestMapping("/api/public")
public class UCSBCurriculumController
extends ApiController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> basicsearch(String qtr, String dept, String level) org.springframework.http.ResponseEntity<String> finalsInfo(String quarterYYYYQ, String enrollCd) org.springframework.http.ResponseEntity<?> generalEducationInfo(String collegeCode) Get primaries for a given quarter, department, and level.primariesGE(String qtr, String area) Methods inherited from class ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
UCSBCurriculumController
public UCSBCurriculumController()
-
-
Method Details
-
basicsearch
-
primaries
@GetMapping(value="/primaries", produces="application/json") public List<Primary> primaries(@RequestParam String qtr, @RequestParam String dept, @RequestParam String level) throws Exception Get primaries for a given quarter, department, and level. This endpoint returns a list of Primary objects.- Parameters:
qtr- the quarter in YYYYQ formatdept- the department code (e.g., "CS")level- the course level (e.g., "UG" for undergraduate)- Returns:
- a list of Primary objects
- Throws:
Exception
-
primariesGE
-
finalsInfo
-
generalEducationInfo
-