Interface RouteService
- All Known Implementing Classes:
RouteServiceMain
public interface RouteService
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new route configuration.findAll()Retrieves all route configurations.Finds a route configuration by its unique identifier.getRouteMetrics(Long routeId) Updates an existing route configuration.
-
Method Details
-
create
Creates a new route configuration.- Parameters:
routeDTO- the route configuration to be created (id must be null)- Returns:
- the created
RouteDTO
-
update
Updates an existing route configuration.- Parameters:
id- the unique identifier of the route to updaterouteDTO- the route configuration with updated data- Returns:
- the updated
RouteDTO
-
findAll
Retrieves all route configurations.- Returns:
- a list of
RouteDTOrepresenting all route configurations
-
findById
Finds a route configuration by its unique identifier.- Parameters:
id- the unique identifier of the route configuration- Returns:
- the
RouteDTOcorresponding to the provided id
-
getRouteMetrics
-