Skip to content

Commit

Permalink
Fix: Advertised only API Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Sep 17, 2024
1 parent e24e3c0 commit 1bbb128
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -673,12 +673,14 @@ private static GatewayAPIDTO createAPIGatewayDTOtoPublishAPI(Environment environ
GatewayUtils.setCustomSequencesToBeRemoved(apiProduct.getId(), api.getUuid(), productAPIDto);
APITemplateBuilder apiTemplateBuilder = new APITemplateBuilderImpl(api, apiProduct);
// check the endpoint type
if (api.getEndpointConfig() != null) {
if (!StringUtils.isEmpty(api.getEndpointConfig())) {
JsonObject endpointConfObj = JsonParser.parseString(api.getEndpointConfig()).getAsJsonObject();
if (!APIConstants.ENDPOINT_TYPE_SEQUENCE.equals(
endpointConfObj.get(APIConstants.API_ENDPOINT_CONFIG_PROTOCOL_TYPE).getAsString())) {
addEndpoints(api, apiTemplateBuilder, productAPIDto);
}
} else {
addEndpoints(api, apiTemplateBuilder, productAPIDto);
}
setCustomSequencesToBeAdded(apiProduct, api, productAPIDto, apiExtractedPath, apidto);
setAPIFaultSequencesToBeAdded(api, productAPIDto, apiExtractedPath, apidto);
Expand Down

0 comments on commit 1bbb128

Please sign in to comment.