Uses of Class
com.unosquare.carmigo.dto.request.JourneyRequest
-
Uses of JourneyRequest in com.unosquare.carmigo.controller
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<JourneyResponse>
JourneyController.createJourney
(@Valid JourneyRequest journeyRequest) Enables logged-in user, as a driver, to create a journey.org.springframework.http.ResponseEntity<JourneyResponse>
JourneyController.createJourneyByDriverId
(int driverId, @Valid JourneyRequest journeyRequest) Enables logged-in admin users to create a journey for a driver. -
Uses of JourneyRequest in com.unosquare.carmigo.service
Modifier and TypeMethodDescriptionJourneyService.createJourney
(int driverId, JourneyRequest journeyRequest) Only drivers can create journeys.