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 <[email protected]> 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 <[email protected]>
> 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 <[email protected]>
>> 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 <https://twitter.com/farazath619>
>>> <http://wso2.com/signature>
>>>
>>>
>>>
>>> On Thu, Oct 19, 2017 at 9:20 AM, Sabeena Kumrawadu <[email protected]>
>>> wrote:
>>>
>>>> Hello Farasath,
>>>>
>>>> Yes.  For the testing purpose only.
>>>>
>>>> Regards.
>>>>
>>>> On Wed, Oct 18, 2017 at 7:13 PM, Farasath Ahamed <[email protected]>
>>>> wrote:
>>>>
>>>>>
>>>>> Hi Sabeena,
>>>>> On Wednesday, October 18, 2017, Sabeena Kumrawadu <[email protected]>
>>>>> 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
>>>>>> <https://maps.google.com/?q=20,+Palm+Grove,+Colombo+03,+Sri+Lanka&entry=gmail&source=g>
>>>>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>>>>> Email: [email protected]
>>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Farasath Ahamed
>>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>>> Mobile: +94777603866
>>>>> Blog: blog.farazath.com
>>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>>> <http://wso2.com/signature>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Sabeena Kumarawadu* | Software Engineering Intern
>>>> WSO2 Lanka (Pvt) Ltd.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> <https://maps.google.com/?q=20,+Palm+Grove,+Colombo+03,+Sri+Lanka&entry=gmail&source=g>
>>>> Mobile: +94 71 0372856 <+94%2071%20037%202856>
>>>> Email: [email protected]
>>>> [image: http://wso2.com/signature] <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: [email protected]
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> 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
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : [email protected]
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to