diff options
Diffstat (limited to 'platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policies.vtl')
-rw-r--r-- | platform-logic/restapi-templates/src/main/velocity/a1Mediator-get-policies.vtl | 7 |
1 files changed, 7 insertions, 0 deletions
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] |