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.Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
UCSBCurriculumController
public UCSBCurriculumController()
-
-
Method Details
-
basicsearch
@GetMapping(value="/basicsearch", produces="application/json") public org.springframework.http.ResponseEntity<String> basicsearch(@RequestParam String qtr, @RequestParam String dept, @RequestParam String level) throws Exception - Throws:
Exception
-
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
-
finalsInfo
@GetMapping(value="/finalsInfo", produces="application/json") public org.springframework.http.ResponseEntity<String> finalsInfo(@RequestParam String quarterYYYYQ, @RequestParam String enrollCd) throws Exception - Throws:
Exception
-
generalEducationInfo
@GetMapping(value="/generalEducationInfo", produces="application/json") public org.springframework.http.ResponseEntity<?> generalEducationInfo(@RequestParam(value="collegeCode",required=false) String collegeCode) throws Exception - Throws:
Exception
-