From 6464b9a1c25de6d947a9761ea917e450fb8ffbea Mon Sep 17 00:00:00 2001 From: Ernst-Christoph Schrewe Date: Wed, 14 Feb 2024 15:47:29 +0100 Subject: [PATCH] fix: missing statusrequest url --- .../common/edc/logic/util/EdcRequestBodyBuilder.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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");