Re: [Dev] How to read API properties in velocity template

2018-06-14 Thread Viduranga Gunarathne
Hi Sachithra, If I'm not mistaken, I don't think it is possible to add a comment in the template that will appear in the output. I myself tried several approaches but still didn't work. Might be able to add it programmatically. Also what would be the use case for having a comment in template out

Re: [Dev] How to read API properties in velocity template

2018-06-13 Thread Sachithra Dangalla
Hi all, Continuing on a similar question, is there a way to add visible comments in the output of the velocity template? [1] denotes only the comments in the velocity template. [1] - http://velocity.apache.org/engine/1.7/vtl-reference.html#comments Thanks, Regards, On Wed, Jun 13, 2018 at 12:45

Re: [Dev] How to read API properties in velocity template

2018-06-13 Thread Sachithra Dangalla
Thanks Rajith. Regards, On Wed, Jun 13, 2018 at 11:39 AM Rajith Roshan wrote: > Hi > You can read the additional properties like in [1] > > [1] - $apiObj.additionalProperties.get('property_name') > > On Wed, Jun 13, 2018 at 10:47 AM Sachithra Dangalla > wrote: > >> Hi all, >> >> I'm trying to

Re: [Dev] How to read API properties in velocity template

2018-06-12 Thread Rajith Roshan
Hi You can read the additional properties like in [1] [1] - $apiObj.additionalProperties.get('property_name') On Wed, Jun 13, 2018 at 10:47 AM Sachithra Dangalla wrote: > Hi all, > > I'm trying to filter out handlers to be executed for an API based on a > custom property which set during API pu

[Dev] How to read API properties in velocity template

2018-06-12 Thread Sachithra Dangalla
Hi all, I'm trying to filter out handlers to be executed for an API based on a custom property which set during API publishing (when setting API properties in "Manage" section). In order to add a condition in the velocity template, I need to read the properties set for the API. Other variables cou