From 3bda2ffb79f58f7603c2f80811dea9142e8a241e Mon Sep 17 00:00:00 2001 From: Ashan Rathnaweera Date: Wed, 22 Jan 2025 12:13:16 +0530 Subject: [PATCH] Add support for mock implementation endpoints in API Products --- .../api_templates/api_product_template.xml | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/modules/distribution/resources/api_templates/api_product_template.xml b/modules/distribution/resources/api_templates/api_product_template.xml index eeb63fe3bf..c86471f8c9 100644 --- a/modules/distribution/resources/api_templates/api_product_template.xml +++ b/modules/distribution/resources/api_templates/api_product_template.xml @@ -171,6 +171,8 @@ url-mapping="$resource.getUriTemplate()" #end methods="$resource.getMethodsAsString()" faultSequence=#print_string_if_exist($aggregate.getFaultSequenceName() "fault")> + + #if($resource.getAggregatedMediationScript().equalsIgnoreCase("null")) #if(!$aggregate.getInSequenceName().isEmpty()) @@ -261,6 +263,39 @@ $out_sequences.get("$resource.getUriTemplate()").get($uri) #end + #else + + + + + + + + + + + + + + + + + + + +#if($resource.getMethodsAsString().contains("GET")||$resource.getMethodsAsString().contains("DELETE")) + +#end + + + + + + #end #set ($resourceNo = $resourceNo + 1) #end ## end of resource iterator @@ -292,4 +327,4 @@ $out_sequences.get("$resource.getUriTemplate()").get($uri) - + \ No newline at end of file