Class CoursesCSVController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.CoursesCSVController
@RequestMapping("/api/courses/csv")
@RestController
public class CoursesCSVController
extends ApiController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForCourses(String yyyyq) org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForCoursesQuarterAndSubjectArea(String yyyyq, String subjectArea, String level, boolean omitSections, boolean withTimeLocations) Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
CoursesCSVController
public CoursesCSVController()
-
-
Method Details
-
csvForCourses
@GetMapping(value="/quarter", produces="text/csv") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForCourses(@RequestParam String yyyyq) throws Exception, IOException - Throws:
ExceptionIOException
-
csvForCoursesQuarterAndSubjectArea
@GetMapping(value="/byQuarterAndSubjectArea", produces="text/csv") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> csvForCoursesQuarterAndSubjectArea(@RequestParam String yyyyq, @RequestParam String subjectArea, @RequestParam(defaultValue="U") String level, @RequestParam(defaultValue="true") boolean omitSections, @RequestParam(defaultValue="true") boolean withTimeLocations) throws Exception, IOException - Throws:
ExceptionIOException
-