Class SchoolsController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.SchoolsController
@RequestMapping("/api/schools")
@RestController
public class SchoolsController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteSchool
(Long id) postSchool
(String name, String rank, String description) updateSchool
(Long id, @Valid School incoming) Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
SchoolsController
public SchoolsController()
-
-
Method Details
-
allSchools
-
getById
-
postSchool
-
deleteSchool
-
updateSchool
-