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 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:
      Exception
      IOException
    • 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:
      Exception
      IOException