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 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()