Class CarController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.CarController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
CarController
public CarController()
-
-
Method Details
-
allCars
-
getById
-
postCar
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public Car postCar(@RequestParam String make, @RequestParam String model, @RequestParam String year) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deleteUCSBDate
-
updateUCSBDate
-