Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Rajkumar Rajaratnam
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.




Thanks,
Raj.

On Wed, May 17, 2017 at 1:59 PM, Júnior  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
> Dev@wso2.org
> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
Sorry, answer to the wrong question.

Thanks

2017-05-17 16:56 GMT-03:00 Júnior :

> As I didn't find a way of using the existing WSDL with external
> references,  I needed to generate a new WSDL with the XSD inlined.
>
> For that I used the QT Assistant
>  to generate a New WSDL with
> the XSD inlined.
>
> Thanks
>
> 2017-05-17 14:59 GMT-03:00 Júnior :
>
>> 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*
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
As I didn't find a way of using the existing WSDL with external references,
 I needed to generate a new WSDL with the XSD inlined.

For that I used the QT Assistant  to
generate a New WSDL with the XSD inlined.

Thanks

2017-05-17 14:59 GMT-03:00 Júnior :

> 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*
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev