Package edu.ucsb.cs.scaffold.controller
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 Summary
Constructors -
Method Summary
Methods inherited from class edu.ucsb.cs.scaffold.controller.ApiController
genericMessage, getCurrentUser, handleEntityNotFoundException, handleForbiddenException, handleIllegalArgument, handleUnsupportedOperation
-
Constructor Details
-
PLQuestionController
public PLQuestionController()
-
-
Method Details
-
allPlQuestions
@PreAuthorize("hasRole(\'ROLE_ADMIN\') || hasRole(\'ROLE_INSTRUCTOR\')") @GetMapping("") public List<PlQuestion> allPlQuestions(@RequestParam Long plrepoId)
-