Package edu.ucsb.cs.scaffold.controller
Class PLInstanceController
java.lang.Object
edu.ucsb.cs.scaffold.controller.ApiController
edu.ucsb.cs.scaffold.controller.PLInstanceController
@RequestMapping("/api/plinstance")
@RestController
public class PLInstanceController
extends ApiController
Read-only: PlInstances are created, updated, and deleted by the SyncPlRepo job (issues #45/#47),
which mirrors the repo's courseInstances 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
-
PLInstanceController
public PLInstanceController()
-
-
Method Details
-
allPlInstances
@PreAuthorize("hasRole(\'ROLE_ADMIN\') || hasRole(\'ROLE_INSTRUCTOR\')") @GetMapping("/all") public Iterable<PlInstance> allPlInstances() -
allPlInstancesForRepo
@PreAuthorize("hasRole(\'ROLE_ADMIN\') || hasRole(\'ROLE_INSTRUCTOR\')") @GetMapping("") public List<PlInstance> allPlInstancesForRepo(@RequestParam Long plrepoId)
-