diff --git a/backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/util/EdcRequestBodyBuilder.java b/backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/util/EdcRequestBodyBuilder.java index fbc4e2e2..085f45f8 100644 --- a/backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/util/EdcRequestBodyBuilder.java +++ b/backend/src/main/java/org/eclipse/tractusx/puris/backend/common/edc/logic/util/EdcRequestBodyBuilder.java @@ -90,7 +90,11 @@ public JsonNode buildCreateItemStockAssetBody(DT_ApiMethodEnum apiMethod) { propertiesObject.put("description", apiMethod.DESCRIPTION); var dataAddress = MAPPER.createObjectNode(); - String url = apiMethod == DT_ApiMethodEnum.REQUEST ? variablesService.getRequestServerEndpoint() : variablesService.getResponseServerEndpoint(); + String url = switch (apiMethod) { + case REQUEST -> variablesService.getRequestServerEndpoint(); + case RESPONSE -> variablesService.getResponseServerEndpoint(); + case STATUS_REQUEST -> variablesService.getStatusRequestServerEndpoint(); + }; dataAddress.put("baseUrl", url); dataAddress.put("type", "HttpData"); dataAddress.put("proxyPath", "true");