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
Methods inherited from class edu.ucsb.cs156.gauchoride.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
RideRequestController
public RideRequestController()
-
-
Method Details
-
rideRequestsAdmin
@PreAuthorize("hasRole(\'ROLE_ADMIN\') || hasRole(\'ROLE_DRIVER\')") @GetMapping("/all") public org.springframework.http.ResponseEntity<String> rideRequestsAdmin() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
rideRequestsRider
@PreAuthorize("hasRole(\'ROLE_RIDER\')") @GetMapping("/all/rider") public org.springframework.http.ResponseEntity<String> rideRequestsRider() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
postRideRequest
@PreAuthorize("hasRole(\'ROLE_RIDER\')") @PostMapping("/post") public RideRequest postRideRequest(@RequestParam String day, @RequestParam String course, @RequestParam String startTime, @RequestParam String stopTime, @RequestParam String building, @RequestParam String room, @RequestParam String pickupLocation) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-