Version 2 (modified by 5 days ago) ( diff ) | ,
---|
Implementation of user scenarios in the prototype
In the technical prototype of the application implemented so far, the following scenarios have been implemented:
ID | UseCase | |
---|---|---|
1 | Search Routes | |
2 | Organize Trip | |
3 | Manage Trip | |
4 | View My Trips | |
5 | Login | |
6 | Register |
ID 1 - Search Routes
The /search-routes
endpoint provides users with the ability to search for available transport routes from different organizers.
It supports both viewing all routes by default and filtering routes based on user input (departure and arrival locations).
The request is handled by UserRouteController
, which interacts with RouteService
to retrieve the relevant data.
Controller Details:
- URL Mapping:
/search-routes
- Method:
GET
- Functionality:
- Displays all routes when the page is accessed without search criteria.
- Filters results based on the user's input (
from
andto
).
- View: Uses the
master
template and dynamically embedsuser/search-routes
.
Breakdown:
- When users first visit
/search-routes
, the controller callsrouteService.findAll()
to display all available routes. - When users provide search criteria (
from
and/orto
), it filters results usingrouteService.findRouteByFromAndToDest(from, to)
. - If no matching routes are found, a "No routes found for your search." message is displayed instead of an empty table.
- The retrieved data is added to the
Model
, ensuring the front-end can render the appropriate content.
Attachments (15)
- search-routes.png (116.5 KB ) - added by 5 days ago.
- search-routes-filter.png (89.8 KB ) - added by 5 days ago.
- add-trip-success.png (82.9 KB ) - added by 5 days ago.
- company-routes-view.png (98.4 KB ) - added by 5 days ago.
- company-trips-view.png (121.0 KB ) - added by 5 days ago.
- trip-stops.png (130.4 KB ) - added by 5 days ago.
- edited-trip.png (93.4 KB ) - added by 5 days ago.
- delete-trip.png (88.0 KB ) - added by 5 days ago.
- edit-trip.png (145.9 KB ) - added by 5 days ago.
- add-modalv1.png (146.1 KB ) - added by 5 days ago.
- my-trips.png (106.1 KB ) - added by 2 days ago.
- login.png (77.0 KB ) - added by 2 days ago.
- register.png (106.8 KB ) - added by 2 days ago.
- login-error.png (83.8 KB ) - added by 2 days ago.
- register-error.png (122.6 KB ) - added by 2 days ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.