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
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForQuarter
(String yyyyq, String testException) Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
EnrollmentController
public EnrollmentController()
-
-
Method Details
-
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, @RequestParam(required=false,defaultValue="") String testException) throws Exception, IOException - Throws:
Exception
IOException
-