diff --git a/src/main/java/com/olympus/hermione/config/ChromaWarmupService.java b/src/main/java/com/olympus/hermione/config/ChromaWarmupService.java index 898e8c2..a59bc5d 100644 --- a/src/main/java/com/olympus/hermione/config/ChromaWarmupService.java +++ b/src/main/java/com/olympus/hermione/config/ChromaWarmupService.java @@ -110,19 +110,19 @@ public class ChromaWarmupService { boolean success = true; try { - // 1. Health check - String healthUrl = chromaHost + ":" + chromaPort + "/api/v1/heartbeat"; + // 1. Health check (updated to v2 API) + String healthUrl = chromaHost + ":" + chromaPort + "/api/v2/heartbeat"; restTemplate.getForObject(healthUrl, String.class); logger.debug("Heartbeat successful"); - // 2. Lista collezioni (operazione più pesante) - String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v1/collections"; + // 2. Lista collezioni (operazione più pesante, updated to v2 API) + String collectionsUrl = chromaHost + ":" + chromaPort + "/api/v2/collections"; restTemplate.getForObject(collectionsUrl, String.class); logger.debug("Collections list successful"); // 3. Prova a contare elementi nella collezione principale try { - String countUrl = chromaHost + ":" + chromaPort + "/api/v1/collections/" + collectionName + "/count"; + String countUrl = chromaHost + ":" + chromaPort + "/api/v2/collections/" + collectionName + "/count"; restTemplate.getForObject(countUrl, String.class); logger.debug("Collection count successful"); } catch (Exception e) {