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 Details

    • RideRequestController

      public RideRequestController()
  • Method Details

    • deleteRideRequest_Admin

      @PreAuthorize("hasRole(\'ROLE_ADMIN\')") @DeleteMapping("/delete") public Object deleteRideRequest_Admin(@RequestParam Long id)
    • deleteRideRequest_Rider

      @PreAuthorize("hasRole(\'ROLE_RIDER\')") @DeleteMapping("/delete/rider") public Object deleteRideRequest_Rider(@RequestParam Long id)
    • 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)