Class GradeController

java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.GradeController

@RequestMapping("/api/grade") @RestController public class GradeController extends ApiController
  • Constructor Details

    • GradeController

      public GradeController()
  • Method Details

    • allHistory

      @GetMapping("/all") public Iterable<Grade> allHistory()
    • uploadCSV

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping(value="upload", produces="application/json") public org.springframework.http.ResponseEntity<String> uploadCSV(@RequestPart org.springframework.web.multipart.MultipartFile file) throws IOException
      Throws:
      IOException