Hi, Recommended way to move APIs between environments is using API import/export tool. See https://docs.wso2.com/display/AM1100/Migrating+the+APIs+to+a+Different+Environment
In terms of environment specific things like URLs, you can externalize them from the API definition and resolve it using a class mediator. See http://nuwanzone.blogspot.com/2015/03/api-gateways-with-dedicated-back-ends.html Even better, for latest API-M releases (1.10 onwards) that are based on synapse 3, we can use get-property('system', 'host') and therefore won't need any class mediators as I mentioned above to resolve environment variables. Passing environment variables in the server startup; sh bin/wso2server.sh -Dhost=prod.wf.com -Dport=6443 Reading them in API synapse definition. <property name="uri.var.host" expression="get-property('system','host')" /> <property name="uri.var.port" expression="get-property('system','port')" /> Thanks, Raj. On Wed, May 17, 2017 at 1:59 PM, Júnior <[email protected]> wrote: > Hello, > > Is it possible to have automated deployment for API definitions on API > Manager? > > We need to have the same API Definition in different environments, what > will change per environemt would be the URLs of the services. > > Is there any way to automate this "deployment" in the different > environments, or is it needed to create one by one per environment? > > Thanks in advance > > -- > Francisco Ribeiro > *SCEA|SCJP|SCWCD|IBM Certified SOA Associate* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Senior Software Engineer, WSO2 LinkedIn: https://lk.linkedin.com/in/rajuu Mobile: +1 408 791 7640 Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
