Skip to content

Commit

Permalink
fix: missing statusrequest url
Browse files Browse the repository at this point in the history
  • Loading branch information
eschrewe committed Feb 14, 2024
1 parent 9fca403 commit 6464b9a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6464b9a

Please sign in to comment.