Class GradeHistoryController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.GradeHistoryController
@RequestMapping("/api/gradehistory")
@RestController
public class GradeHistoryController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongradeHistoryBySubjectAreaAndCourseNumber
(String subjectArea, String courseNumber) Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
GradeHistoryController
public GradeHistoryController()
-
-
Method Details
-
gradeHistoryBySubjectAreaAndCourseNumber
@GetMapping(value="/search", produces="application/json") public Iterable<GradeHistory> gradeHistoryBySubjectAreaAndCourseNumber(@RequestParam String subjectArea, @RequestParam String courseNumber) -
allHistory
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @GetMapping("/all") public Iterable<GradeHistory> allHistory()
-