Class RideController
java.lang.Object
edu.ucsb.cs156.gauchoride.controllers.ApiController
edu.ucsb.cs156.gauchoride.controllers.RideController
@RequestMapping("/api/ride_request")
@RestController
public class RideController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallRides()
allRidesByShiftId
(Long shiftId) assigndriverRide
(Long id, @Valid Ride incoming) deleteRide
(Long id) postRide
(String day, String startTime, String endTime, String pickupBuilding, String pickupRoom, String dropoffBuilding, String dropoffRoom, String course, String notes) updateRide
(Long id, @Valid Ride incoming) Methods inherited from class edu.ucsb.cs156.gauchoride.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
RideController
public RideController()
-
-
Method Details
-
allRides
-
getById
-
allRidesByShiftId
-
postRide
@PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("/post") public Ride postRide(@RequestParam String day, @RequestParam String startTime, @RequestParam String endTime, @RequestParam String pickupBuilding, @RequestParam String pickupRoom, @RequestParam String dropoffBuilding, @RequestParam String dropoffRoom, @RequestParam String course, @RequestParam String notes) -
deleteRide
-
updateRide
-
assigndriverRide
-