Class PSCourseDetailsController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.PSCourseDetailsController
@RequestMapping("/api/courseDetails")
@RestController
public class PSCourseDetailsController
extends ApiController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
PSCourseDetailsController
public PSCourseDetailsController()
-
-
Method Details
-
allSections
@PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping(value="/all", produces="application/json") public ArrayList<CourseWithSchedule> allSections() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-