Class RideRequestController
java.lang.Object
edu.ucsb.cs156.gauchoride.controllers.ApiController
edu.ucsb.cs156.gauchoride.controllers.RideRequestController
@RequestMapping("/api/riderequests")
@RestController
public class RideRequestController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionupdateRideRequest_Admin
(Long id, @Valid RideRequest incoming) updateRideRequest_Rider
(Long id, @Valid RideRequest incoming) Methods inherited from class edu.ucsb.cs156.gauchoride.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
RideRequestController
public RideRequestController()
-
-
Method Details
-
deleteRideRequest_Admin
-
deleteRideRequest_Rider
-
updateRideRequest_Admin
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PutMapping("/put") public RideRequest updateRideRequest_Admin(@RequestParam Long id, @RequestBody @Valid @Valid RideRequest incoming) -
updateRideRequest_Rider
@PreAuthorize("hasRole(\'ROLE_RIDER\')") @PutMapping("/put/rider") public RideRequest updateRideRequest_Rider(@RequestParam Long id, @RequestBody @Valid @Valid RideRequest incoming)
-