I have a custom handler that should only be applied to a set of APIs. I have seen that editing <APIM_HOME>/repository/resources/api_templates/velocity_template.xml
would apply the change to all APIs. Is there an automatic way to assign it but only to a subset of the APIs?
UPDATE: My wso2 api management version is 2.6.0. I am checking an application_type property but it doesn't work:
<handlers>
#if($apiObj.additionalProperties.get('application_type') == "whatener")
<handler class="com.codependent.MyCustomHandler"/>
#end
</handlers>
Removing the if block the handler is correctly printed.
So how can I access the API properties to check the condition?