Class EnrollmentController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.EnrollmentController
@RequestMapping("/api/enrollment")
@RestController
public class EnrollmentController
extends ApiController
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
EnrollmentController
public EnrollmentController()
-
-
Method Details
-
search
@GetMapping(value="/search", produces="application/json") public Iterable<EnrollmentDataPoint> search(@RequestParam String startQtr, @RequestParam String endQtr, @RequestParam String subjectArea, @RequestParam String courseNumber, @RequestParam(required=false) String enrollCd, @RequestParam(required=false) String section) -
csvForQuarter
@GetMapping(value="/csv/quarter", produces="text/csv") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForQuarter(@RequestParam String yyyyq) throws IOException - Throws:
IOException
-