Uses of Class
com.unosquare.carmigo.dto.response.JourneyResponse
-
Uses of JourneyResponse 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.org.springframework.http.ResponseEntity<JourneyResponse>
JourneyController.getJourneyById
(int journeyId) Enables logged-in admin users to search for a specific journey.org.springframework.http.ResponseEntity<List<JourneyResponse>>
JourneyController.getJourneysByCurrentDriver()
Enables logged-in user, as a driver, to search for their journeys.org.springframework.http.ResponseEntity<List<JourneyResponse>>
JourneyController.getJourneysByCurrentPassenger()
Enables logged-in user, as a passenger, to search their journeys.org.springframework.http.ResponseEntity<List<JourneyResponse>>
JourneyController.getJourneysByDriverId
(int driverId) Enables logged-in admin users to search for journeys of a driver.org.springframework.http.ResponseEntity<List<JourneyResponse>>
JourneyController.getJourneysByPassengerId
(int passengerId) Enables logged-in admin users to search for journeys of a passenger.org.springframework.http.ResponseEntity<JourneyResponse>
JourneyController.patchJourney
(int journeyId, @Valid com.github.fge.jsonpatch.JsonPatch patch) Enables logged-in admin users or the driver who owns this journey to make correction.org.springframework.http.ResponseEntity<List<JourneyResponse>>
JourneyController.searchJourneys
(@Valid SearchJourneysRequest searchJourneysRequest) Enables users to search for journeys. -
Uses of JourneyResponse in com.unosquare.carmigo.service
Modifier and TypeMethodDescriptionJourneyService.createJourney
(int driverId, JourneyRequest journeyRequest) Only drivers can create journeys.JourneyService.getJourneyById
(int journeyId) Fetches a journey.JourneyService.patchJourney
(int journeyId, com.github.fge.jsonpatch.JsonPatch patch) Corrects journey information.
Pass an array of aJsonPatch
body with operation, the path and the value.
Accepted operation values are “add”, "remove", "replace", "move", "copy" and "test".
Here is an example which updates a journey to take up to 3 passengers, and it is going to destination id 5:Modifier and TypeMethodDescriptionJourneyService.getJourneysByDriverId
(int driverId) Fetches journeys of a driver.JourneyService.getJourneysByPassengersId
(int passengerId) Fetches journeys of a passenger.JourneyService.searchJourneys
(SearchJourneysRequest searchJourneysRequest) Searches for journeys.