Class SchoolController
java.lang.Object
edu.ucsb.cs156.organic.controllers.ApiController
edu.ucsb.cs156.organic.controllers.SchoolController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteSchool
(String abbrev) updateSchool
(String abbrev, @Valid School incoming) Methods inherited from class edu.ucsb.cs156.organic.controllers.ApiController
genericMessage, getCurrentUser, getMapper, handleAccessDeniedException, handleGenericException, handleIllegalArgumentException, mapperThatIgnoresMockitoMocks
-
Constructor Details
-
SchoolController
public SchoolController()
-
-
Method Details
-
updateSchool
-
allSchools
-
getById
-
deleteSchool
-
postSchool
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public School postSchool(@RequestParam String abbrev, @RequestParam String name, @RequestParam String termRegex, @RequestParam String termDescription, @RequestParam(required=false) String termError) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-