Skip to content

VSN-2834/feat(preparation-planning): add map circuits-tree & trips-by-ids endpoints...

abdellatif elkerbani a demandé de fusionner feature/VSN-2834 vers develop

New endpoints ─────────────

  • GET /api/preparation/circuit/planning/map/circuits-tree Returns a lean preparation → circuit → tripIds hierarchy (no geometry) for the map sidebar. Circuits sorted by circuitCode, trips ordered by startHour ascending, preparations sorted by name. Response: PreparationPlanningMapTreeDTO (PreparationGroup → CircuitNode).

  • POST /api/preparation/circuit/planning/trips/by-ids Lazy-loads full trip DTOs (ORS geometry + map stops) for an explicit list of tripIds on a given date. Body: TripsByIdsRequestDTO (@NotEmpty tripIds, @NotNull date, optional preparationUuid). Resolution: PlanningQueryService.resolveDaysByTripIds mirrors the existing resolveDaysForDate chain (trip-day → trip → amendment → circuit).

Rapports de requête de fusion