Class PLQuestionController

java.lang.Object
edu.ucsb.cs.scaffold.controller.ApiController
edu.ucsb.cs.scaffold.controller.PLQuestionController

@RequestMapping("/api/plQuestion") @RestController public class PLQuestionController extends ApiController
Read-only: PlQuestions are created, updated, and deleted by the SyncPlRepo job (issues #45/#47), which mirrors the repo's questions directory on GitHub — not by POST/DELETE endpoints.
  • Constructor Details

    • PLQuestionController

      public PLQuestionController()
  • Method Details

    • allPlQuestions

      @PreAuthorize("hasRole(\'ROLE_ADMIN\') || hasRole(\'ROLE_INSTRUCTOR\')") @GetMapping("") public List<PlQuestion> allPlQuestions(@RequestParam Long plrepoId)