Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-25 Thread Sabeena Kumrawadu
Hi Rajith and Abimaran,

Thank you very much, it was really helpful.
I went through all the links, I will be using feign client with Swagger
codegen.

Reagards.

On Wed, Oct 25, 2017 at 10:17 AM, Abimaran Kugathasan 
wrote:

> Hi Sabeena,
>
> I guess you are planning to write an HTTP client library to invoke APIs.
> In that case, there are many HTTP libraries out there. Swagger codegen [1]
> provides a client for different languages, for Java, it provides client SDK
> compatible with Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x,
> Feign, RestTemplate, RESTEasy, Vertx
>
> [1]: https://github.com/swagger-api/swagger-codegen
>
> On Tue, Oct 24, 2017 at 10:34 PM, Rajith Roshan  wrote:
>
>> Hi,
>>
>> In C5 we have used  feign library[1] as a http client. You can refer the
>> usages in code[2]
>>
>> [1] - https://github.com/OpenFeign/feign
>> [2] - https://github.com/wso2/carbon-apimgt/blob/master/componen
>> ts/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/
>> wso2/carbon/apimgt/core/auth/DCRMServiceStub.java#L36
>>
>> On Thu, Oct 19, 2017 at 3:02 PM, Sabeena Kumrawadu 
>> wrote:
>>
>>> Thank you Farasath.
>>> But AFAIK SwaggerHub is for creating the API swagger defintion.
>>> But my task is to write an API client for the integration tests of the
>>> microgateway.
>>> I want to know which library would be more suitable. Jersey, Apache HTTP
>>> clienr or any other?
>>>
>>> Regards.
>>>
>>> On Thu, Oct 19, 2017 at 11:09 AM, Farasath Ahamed 
>>> wrote:
>>>
 I have used https://editor.swagger.io/ to generate clients. Pretty
 easy and gives plenty of options when you have the swagger files.

 Thanks,
 Farasath

 Farasath Ahamed
 Software Engineer, WSO2 Inc.; http://wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 
 



 On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu 
 wrote:

> Hello Farasath,
>
> Yes.  For the testing purpose only.
>
> Regards.
>
> On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed 
> wrote:
>
>>
>> Hi Sabeena,
>> On Wednesday, October 18, 2017, Sabeena Kumrawadu 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have to test the Offline Microgateway, which I finished building
>>> recently,
>>>
>>> To introduce about the Offline Microgateway, it can be started
>>> independantly, and has no connection with the API Core, where the
>>> authentication is done with the API keys.
>>>
>>> User only has to give the API bal files and the API swagger files of
>>> each APIS to start the gateway.
>>>
>>> Currently it has been suggested to build an API client with the
>>> Jersey client. What would be the best way of creting an API client for 
>>> this
>>> task?
>>>
>>
>> By API Client you mean clients for each API we deploy?
>>
>>>
>>> Thanks and Regards.
>>>
>>> --
>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>> WSO2 Lanka (Pvt) Ltd.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> 
>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>> Email: sabe...@wso2.com
>>> [image: http://wso2.com/signature] 
>>>
>>>
>>
>> --
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>>
>
>
> --
> *Sabeena Kumarawadu* | Software Engineering Intern
> WSO2 Lanka (Pvt) Ltd.
> #20, Palm Grove, Colombo 03, Sri Lanka
> 
> Mobile: +94 71 0372856 <+94%2071%20037%202856>
> Email: sabe...@wso2.com
> [image: http://wso2.com/signature] 
>
>

>>>
>>>
>>> --
>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>> WSO2 Lanka (Pvt) Ltd.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> 
>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>> Email: sabe...@wso2.com
>>> [image: http://wso2.com/signature] 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Roshan
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> 

Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-24 Thread Abimaran Kugathasan
Hi Sabeena,

I guess you are planning to write an HTTP client library to invoke APIs. In
that case, there are many HTTP libraries out there. Swagger codegen [1]
provides a client for different languages, for Java, it provides client SDK
compatible with Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x,
Feign, RestTemplate, RESTEasy, Vertx

[1]: https://github.com/swagger-api/swagger-codegen

On Tue, Oct 24, 2017 at 10:34 PM, Rajith Roshan  wrote:

> Hi,
>
> In C5 we have used  feign library[1] as a http client. You can refer the
> usages in code[2]
>
> [1] - https://github.com/OpenFeign/feign
> [2] - https://github.com/wso2/carbon-apimgt/blob/master/
> components/apimgt/org.wso2.carbon.apimgt.core/src/main/
> java/org/wso2/carbon/apimgt/core/auth/DCRMServiceStub.java#L36
>
> On Thu, Oct 19, 2017 at 3:02 PM, Sabeena Kumrawadu 
> wrote:
>
>> Thank you Farasath.
>> But AFAIK SwaggerHub is for creating the API swagger defintion.
>> But my task is to write an API client for the integration tests of the
>> microgateway.
>> I want to know which library would be more suitable. Jersey, Apache HTTP
>> clienr or any other?
>>
>> Regards.
>>
>> On Thu, Oct 19, 2017 at 11:09 AM, Farasath Ahamed 
>> wrote:
>>
>>> I have used https://editor.swagger.io/ to generate clients. Pretty easy
>>> and gives plenty of options when you have the swagger files.
>>>
>>> Thanks,
>>> Farasath
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>> 
>>>
>>>
>>>
>>> On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu 
>>> wrote:
>>>
 Hello Farasath,

 Yes.  For the testing purpose only.

 Regards.

 On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed 
 wrote:

>
> Hi Sabeena,
> On Wednesday, October 18, 2017, Sabeena Kumrawadu 
> wrote:
>
>> Hi all,
>>
>> I have to test the Offline Microgateway, which I finished building
>> recently,
>>
>> To introduce about the Offline Microgateway, it can be started
>> independantly, and has no connection with the API Core, where the
>> authentication is done with the API keys.
>>
>> User only has to give the API bal files and the API swagger files of
>> each APIS to start the gateway.
>>
>> Currently it has been suggested to build an API client with the
>> Jersey client. What would be the best way of creting an API client for 
>> this
>> task?
>>
>
> By API Client you mean clients for each API we deploy?
>
>>
>> Thanks and Regards.
>>
>> --
>> *Sabeena Kumarawadu* | Software Engineering Intern
>> WSO2 Lanka (Pvt) Ltd.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> 
>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>> Email: sabe...@wso2.com
>> [image: http://wso2.com/signature] 
>>
>>
>
> --
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
>


 --
 *Sabeena Kumarawadu* | Software Engineering Intern
 WSO2 Lanka (Pvt) Ltd.
 #20, Palm Grove, Colombo 03, Sri Lanka
 
 Mobile: +94 71 0372856 <+94%2071%20037%202856>
 Email: sabe...@wso2.com
 [image: http://wso2.com/signature] 


>>>
>>
>>
>> --
>> *Sabeena Kumarawadu* | Software Engineering Intern
>> WSO2 Lanka (Pvt) Ltd.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>> Email: sabe...@wso2.com
>> [image: http://wso2.com/signature] 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Roshan
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94-7 <%2B94-71-554-8430>17-064-214
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-24 Thread Rajith Roshan
Hi,

In C5 we have used  feign library[1] as a http client. You can refer the
usages in code[2]

[1] - https://github.com/OpenFeign/feign
[2] -
https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/wso2/carbon/apimgt/core/auth/DCRMServiceStub.java#L36

On Thu, Oct 19, 2017 at 3:02 PM, Sabeena Kumrawadu  wrote:

> Thank you Farasath.
> But AFAIK SwaggerHub is for creating the API swagger defintion.
> But my task is to write an API client for the integration tests of the
> microgateway.
> I want to know which library would be more suitable. Jersey, Apache HTTP
> clienr or any other?
>
> Regards.
>
> On Thu, Oct 19, 2017 at 11:09 AM, Farasath Ahamed 
> wrote:
>
>> I have used https://editor.swagger.io/ to generate clients. Pretty easy
>> and gives plenty of options when you have the swagger files.
>>
>> Thanks,
>> Farasath
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>> 
>>
>>
>>
>> On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu 
>> wrote:
>>
>>> Hello Farasath,
>>>
>>> Yes.  For the testing purpose only.
>>>
>>> Regards.
>>>
>>> On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed 
>>> wrote:
>>>

 Hi Sabeena,
 On Wednesday, October 18, 2017, Sabeena Kumrawadu 
 wrote:

> Hi all,
>
> I have to test the Offline Microgateway, which I finished building
> recently,
>
> To introduce about the Offline Microgateway, it can be started
> independantly, and has no connection with the API Core, where the
> authentication is done with the API keys.
>
> User only has to give the API bal files and the API swagger files of
> each APIS to start the gateway.
>
> Currently it has been suggested to build an API client with the Jersey
> client. What would be the best way of creting an API client for this task?
>

 By API Client you mean clients for each API we deploy?

>
> Thanks and Regards.
>
> --
> *Sabeena Kumarawadu* | Software Engineering Intern
> WSO2 Lanka (Pvt) Ltd.
> #20, Palm Grove, Colombo 03, Sri Lanka
> 
> Mobile: +94 71 0372856 <+94%2071%20037%202856>
> Email: sabe...@wso2.com
> [image: http://wso2.com/signature] 
>
>

 --
 Farasath Ahamed
 Software Engineer, WSO2 Inc.; http://wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 
 




>>>
>>>
>>> --
>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>> WSO2 Lanka (Pvt) Ltd.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> 
>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>> Email: sabe...@wso2.com
>>> [image: http://wso2.com/signature] 
>>>
>>>
>>
>
>
> --
> *Sabeena Kumarawadu* | Software Engineering Intern
> WSO2 Lanka (Pvt) Ltd.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 0372856 <+94%2071%20037%202856>
> Email: sabe...@wso2.com
> [image: http://wso2.com/signature] 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Roshan
Senior Software Engineer, WSO2 Inc.
Mobile: +94-7 <%2B94-71-554-8430>17-064-214
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-19 Thread Sabeena Kumrawadu
Thank you Farasath.
But AFAIK SwaggerHub is for creating the API swagger defintion.
But my task is to write an API client for the integration tests of the
microgateway.
I want to know which library would be more suitable. Jersey, Apache HTTP
clienr or any other?

Regards.

On Thu, Oct 19, 2017 at 11:09 AM, Farasath Ahamed 
wrote:

> I have used https://editor.swagger.io/ to generate clients. Pretty easy
> and gives plenty of options when you have the swagger files.
>
> Thanks,
> Farasath
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
> On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu 
> wrote:
>
>> Hello Farasath,
>>
>> Yes.  For the testing purpose only.
>>
>> Regards.
>>
>> On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed 
>> wrote:
>>
>>>
>>> Hi Sabeena,
>>> On Wednesday, October 18, 2017, Sabeena Kumrawadu 
>>> wrote:
>>>
 Hi all,

 I have to test the Offline Microgateway, which I finished building
 recently,

 To introduce about the Offline Microgateway, it can be started
 independantly, and has no connection with the API Core, where the
 authentication is done with the API keys.

 User only has to give the API bal files and the API swagger files of
 each APIS to start the gateway.

 Currently it has been suggested to build an API client with the Jersey
 client. What would be the best way of creting an API client for this task?

>>>
>>> By API Client you mean clients for each API we deploy?
>>>

 Thanks and Regards.

 --
 *Sabeena Kumarawadu* | Software Engineering Intern
 WSO2 Lanka (Pvt) Ltd.
 #20, Palm Grove, Colombo 03, Sri Lanka
 
 Mobile: +94 71 0372856 <+94%2071%20037%202856>
 Email: sabe...@wso2.com
 [image: http://wso2.com/signature] 


>>>
>>> --
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>> 
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Sabeena Kumarawadu* | Software Engineering Intern
>> WSO2 Lanka (Pvt) Ltd.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> 
>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>> Email: sabe...@wso2.com
>> [image: http://wso2.com/signature] 
>>
>>
>


-- 
*Sabeena Kumarawadu* | Software Engineering Intern
WSO2 Lanka (Pvt) Ltd.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 0372856
Email: sabe...@wso2.com
[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-18 Thread Sabeena Kumrawadu
Hello Farasath,

Yes.  For the testing purpose only.

Regards.

On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed  wrote:

>
> Hi Sabeena,
> On Wednesday, October 18, 2017, Sabeena Kumrawadu 
> wrote:
>
>> Hi all,
>>
>> I have to test the Offline Microgateway, which I finished building
>> recently,
>>
>> To introduce about the Offline Microgateway, it can be started
>> independantly, and has no connection with the API Core, where the
>> authentication is done with the API keys.
>>
>> User only has to give the API bal files and the API swagger files of each
>> APIS to start the gateway.
>>
>> Currently it has been suggested to build an API client with the Jersey
>> client. What would be the best way of creting an API client for this task?
>>
>
> By API Client you mean clients for each API we deploy?
>
>>
>> Thanks and Regards.
>>
>> --
>> *Sabeena Kumarawadu* | Software Engineering Intern
>> WSO2 Lanka (Pvt) Ltd.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> 
>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>> Email: sabe...@wso2.com
>> [image: http://wso2.com/signature] 
>>
>>
>
> --
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
>


-- 
*Sabeena Kumarawadu* | Software Engineering Intern
WSO2 Lanka (Pvt) Ltd.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 0372856
Email: sabe...@wso2.com
[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-18 Thread Farasath Ahamed
Hi Sabeena,
On Wednesday, October 18, 2017, Sabeena Kumrawadu  wrote:

> Hi all,
>
> I have to test the Offline Microgateway, which I finished building
> recently,
>
> To introduce about the Offline Microgateway, it can be started
> independantly, and has no connection with the API Core, where the
> authentication is done with the API keys.
>
> User only has to give the API bal files and the API swagger files of each
> APIS to start the gateway.
>
> Currently it has been suggested to build an API client with the Jersey
> client. What would be the best way of creting an API client for this task?
>

By API Client you mean clients for each API we deploy?

>
> Thanks and Regards.
>
> --
> *Sabeena Kumarawadu* | Software Engineering Intern
> WSO2 Lanka (Pvt) Ltd.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 0372856
> Email: sabe...@wso2.com 
> [image: http://wso2.com/signature] 
>
>

-- 
Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Testing for Offline Microgateway

2017-10-18 Thread Sabeena Kumrawadu
Hi all,

I have to test the Offline Microgateway, which I finished building recently,

To introduce about the Offline Microgateway, it can be started
independantly, and has no connection with the API Core, where the
authentication is done with the API keys.

User only has to give the API bal files and the API swagger files of each
APIS to start the gateway.

Currently it has been suggested to build an API client with the Jersey
client. What would be the best way of creting an API client for this task?

Thanks and Regards.

-- 
*Sabeena Kumarawadu* | Software Engineering Intern
WSO2 Lanka (Pvt) Ltd.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 0372856
Email: sabe...@wso2.com
[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev