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
Methods inherited from class edu.ucsb.cs156.gauchoride.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
RideController
public RideController()
-
-
Method Details
-
allRides
-
getById
-
postRide
@PreAuthorize("hasRole(\'ROLE_USER\')") @PostMapping("/post") public Ride postRide(@RequestParam String day, @RequestParam String startTime, @RequestParam String endTime, @RequestParam String pickupLocation, @RequestParam String pickupRoom, @RequestParam String dropoffLocation, @RequestParam String dropoffRoom, @RequestParam String course, @RequestParam String notes) -
deleteRide
-
updateRide
-