Hi Vinuri You can add it to the api xml file in the synapse config folder (/repository/deployment/server/synapse-configs/default/api)
On Wed, Jan 28, 2015 at 2:02 PM, Vinuri Perera <vinu...@wso2.com> wrote: > Hi All, > I'm working on a Custom API Handler which should invoke when a api request > is sent. > I was able to add the Api handler to the newly created API's by changing > the > *wso2am-1.7.0/repository/resources/api_templates/velocity_template.xml* > file > > <handlers xmlns="http://ws.apache.org/ns/synapse"> > > #foreach($handler in $handlers) > > <handler xmlns="http://ws.apache.org/ns/synapse" > class="$handler.className"> > > #if($handler.hasProperties()) > > #set ($map = $handler.getProperties() ) > > #foreach($property in $map.entrySet()) > > <property name="$!property.key" > value="$!property.value"/> > > #end > > #end > > </handler> > > #end > > <handler class="org.wso2.handler.ApiInvocationHandler"/> > > </handlers> > > > But is it possible to add this handler to the already existing API's ?? > > Thank You, > Best Regards, > ~Vinuri~ > -- > Vinuri Perera > Software Engineer | WSO2 Inc > > M : 0711518805 > > -- Regards, Chamila Adhikarinayake Software Engineer WSO2, Inc. Mobile - +94712346437 Email - chami...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev