diff --git a/src/main/java/de/caritas/cob/mailservice/config/apiclient/TranlationMangementServiceApiClient.java b/src/main/java/de/caritas/cob/mailservice/config/apiclient/TranlationMangementServiceApiClient.java index f8843f6..83e7dfb 100644 --- a/src/main/java/de/caritas/cob/mailservice/config/apiclient/TranlationMangementServiceApiClient.java +++ b/src/main/java/de/caritas/cob/mailservice/config/apiclient/TranlationMangementServiceApiClient.java @@ -2,6 +2,7 @@ import lombok.NonNull; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; @@ -12,6 +13,7 @@ @Service @RequiredArgsConstructor +@Slf4j public class TranlationMangementServiceApiClient { @Value("${weblate.api.url}") @@ -28,9 +30,10 @@ public String tryFetchTranslationsFromTranslationManagementService(String projec String component, String languageCode) { HttpHeaders headers = new HttpHeaders(); headers.set("Authorization", "Token " + apiKey); - String url = apiUrl + "translations/" + project + "/" + component + "/test" + "/" + languageCode + String url = apiUrl + "translations/" + project + "/" + component + "/" + languageCode + "/file.json"; + log.info("Calling url to fetch translations: {}", url); ResponseEntity response = restTemplate.exchange(url, HttpMethod.GET, new HttpEntity<>(headers), String.class); return response.getBody();