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 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
    • deleteSchedule

      @PreAuthorize("hasRole(\'ROLE_USER\')") @DeleteMapping("/delete") public Object deleteSchedule(@RequestParam Long psId, @RequestParam String enrollCd) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException