Class PersonalSectionsController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
edu.ucsb.cs156.courses.controllers.PersonalSectionsController
@RequestMapping("/api/personalSections")
@RestController
public class PersonalSectionsController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteScheduleAndLectures
(Long psId, String enrollCd) getSectionsByPsId
(Long psId) Methods inherited from class edu.ucsb.cs156.courses.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException, handleIllegalArgumentException
-
Constructor Details
-
PersonalSectionsController
public PersonalSectionsController()
-
-
Method Details
-
getSectionsByPsId
@PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping(value="/all", produces="application/json") public ArrayList<Course> getSectionsByPsId(@RequestParam Long psId) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deleteScheduleAndLectures
@PreAuthorize("hasRole(\'ROLE_USER\')") @DeleteMapping("/delete") public Object deleteScheduleAndLectures(@RequestParam Long psId, @RequestParam String enrollCd) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-