From: Dan Timoney Date: Tue, 18 Feb 2020 21:20:00 +0000 (+0000) Subject: Merge "Fix missing parameter value in BBS json template" X-Git-Tag: 1.8.0~18 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f0cbef6e5e20b947252c1ff9ef851de7990f8128;hp=5515efdcbd0c0a2c6250e620225062a29f3467cb;p=sdnc%2Foam.git Merge "Fix missing parameter value in BBS json template" Former-commit-id: df853bec2c86a38c9e2d81e499185ead5332bf3c --- diff --git a/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policies.vtl b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policies.vtl new file mode 100644 index 00000000..8282c7b6 --- /dev/null +++ b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policies.vtl @@ -0,0 +1,7 @@ +## Velocity template for creating payload getPolicyTypes response +#set($begCntr=0) +#set($endCntr=0) +#set($entries=$ctx.getAttribute("a1MediatorRsp._length")) +#set($endCntr=$endCntr.parseInt($entries)) +#set( $endCntr = $endCntr - 1) +[#foreach($no in [$begCntr..$endCntr])$ctx.getAttribute("a1MediatorList.[$no]")#if( $foreach.count < $endCntr+1), #end #end] diff --git a/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy-instances.vtl b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy-instances.vtl new file mode 100644 index 00000000..89bc370c --- /dev/null +++ b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy-instances.vtl @@ -0,0 +1,7 @@ +## Velocity template for creating payload getPolicyInstances response +#set($begCntr=0) +#set($endCntr=0) +#set($entries=$ctx.getAttribute("a1MediatorRsp._length")) +#set($endCntr=$endCntr.parseInt($entries)) +#set( $endCntr = $endCntr - 1) +[#foreach($no in [$begCntr..$endCntr])$ctx.getAttribute("a1MediatorPolicyInstancesList.[$no]")#if( $foreach.count < $endCntr+1), #end #end] diff --git a/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy.vtl b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy.vtl new file mode 100644 index 00000000..452fa136 --- /dev/null +++ b/platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policy.vtl @@ -0,0 +1,2 @@ +## Velocity template for creating payload getPolicyType response +$ctx.getAttribute("a1MediatorgetPolicyType")