Re: [Dev] [DEV] Manage central location for REST API utility classes across platform

2015-10-21 Thread Sanjeewa Malalgoda
Thanks sagara, Yes those will be able to use in generic CXF applications
but run time should be carbon as it access configuration contexts etc.
I think what you pointed was also specifically for carbon runtime. So we
may move these classes there.

Thanks,
sanjeewa.

On Wed, Oct 21, 2015 at 7:24 PM, Sagara Gunathunga  wrote:

>
>
> On Wed, Oct 21, 2015 at 7:11 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi All,
>> As a part of implementing complete REST API for services available with
>> product, we implemented some of the common classes which we can use across
>> platform.
>> So I think we need place all of them in single location and use them by
>> all products.
>> As i know GREG, ML, APP Store already started developing REST API for
>> their functionalities.
>>
>> As i know we all will implement CXF based JAX-RS application for REST
>> services.
>> And we will need some common handlers to implement security, input
>> validations etc.
>> So far we have implemented XACM, Basic auth handlers and some utulity
>> classes for our use case and may be in future we can add few more.
>> I have extracted them and placed in package named rest.api.util. Code can
>> be found here[1].
>>
>> Please add details if you have done some work related to your REST APIs.
>> Then we can discuss and come to conclusion on single package for them.
>> We can add different security related handlers(authentication,
>> authorization etc), input validation, resource matchers etc.
>>
>> [1]
>> https://github.com/sanjeewa-malalgoda/carbon-apimgt/tree/feature-restapi-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.util
>>
>
> If those extensions are reusable with generic CXF applications on WSO2
> platform you can add them here[1]
>
> [1] -
> https://github.com/wso2/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext
>
>
> Thanks !
>
>>
>> Thanks,
>> sanjeewa.
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>> blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] [DEV] Manage central location for REST API utility classes across platform

2015-10-21 Thread Supun Sethunga
+1 for the idea.

In ML, we too have a couple of handlers [1] which are reusable (might need
to rectify some names to remove the 'ml' prefixes).

[1]
https://github.com/wso2/carbon-ml/tree/master/components/ml/org.wso2.carbon.ml.rest.api/src/main/java/org/wso2/carbon/ml/rest/api/handler

Thanks,
Supun

On Wed, Oct 21, 2015 at 9:41 AM, Sanjeewa Malalgoda 
wrote:

> Hi All,
> As a part of implementing complete REST API for services available with
> product, we implemented some of the common classes which we can use across
> platform.
> So I think we need place all of them in single location and use them by
> all products.
> As i know GREG, ML, APP Store already started developing REST API for
> their functionalities.
>
> As i know we all will implement CXF based JAX-RS application for REST
> services.
> And we will need some common handlers to implement security, input
> validations etc.
> So far we have implemented XACM, Basic auth handlers and some utulity
> classes for our use case and may be in future we can add few more.
> I have extracted them and placed in package named rest.api.util. Code can
> be found here[1].
>
> Please add details if you have done some work related to your REST APIs.
> Then we can discuss and come to conclusion on single package for them.
> We can add different security related handlers(authentication,
> authorization etc), input validation, resource matchers etc.
>
> [1]
> https://github.com/sanjeewa-malalgoda/carbon-apimgt/tree/feature-restapi-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.util
>
> Thanks,
> sanjeewa.
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Manage central location for REST API utility classes across platform

2015-10-21 Thread Sagara Gunathunga
On Wed, Oct 21, 2015 at 8:15 PM, Sanjeewa Malalgoda 
wrote:

> Thanks sagara, Yes those will be able to use in generic CXF applications
> but run time should be carbon as it access configuration contexts etc.
> I think what you pointed was also specifically for carbon runtime. So we
> may move these classes there.
>

Yes, available extensions also developed to consume Carbon features within
CXF applications.

Thanks !

>
> Thanks,
> sanjeewa.
>
> On Wed, Oct 21, 2015 at 7:24 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Wed, Oct 21, 2015 at 7:11 PM, Sanjeewa Malalgoda 
>> wrote:
>>
>>> Hi All,
>>> As a part of implementing complete REST API for services available with
>>> product, we implemented some of the common classes which we can use across
>>> platform.
>>> So I think we need place all of them in single location and use them by
>>> all products.
>>> As i know GREG, ML, APP Store already started developing REST API for
>>> their functionalities.
>>>
>>> As i know we all will implement CXF based JAX-RS application for REST
>>> services.
>>> And we will need some common handlers to implement security, input
>>> validations etc.
>>> So far we have implemented XACM, Basic auth handlers and some utulity
>>> classes for our use case and may be in future we can add few more.
>>> I have extracted them and placed in package named rest.api.util. Code
>>> can be found here[1].
>>>
>>> Please add details if you have done some work related to your REST APIs.
>>> Then we can discuss and come to conclusion on single package for them.
>>> We can add different security related handlers(authentication,
>>> authorization etc), input validation, resource matchers etc.
>>>
>>> [1]
>>> https://github.com/sanjeewa-malalgoda/carbon-apimgt/tree/feature-restapi-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.util
>>>
>>
>> If those extensions are reusable with generic CXF applications on WSO2
>> platform you can add them here[1]
>>
>> [1] -
>> https://github.com/wso2/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext
>>
>>
>> Thanks !
>>
>>>
>>> Thanks,
>>> sanjeewa.
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>> blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> 
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Manage central location for REST API utility classes across platform

2015-10-21 Thread Sagara Gunathunga
On Wed, Oct 21, 2015 at 7:11 PM, Sanjeewa Malalgoda 
wrote:

> Hi All,
> As a part of implementing complete REST API for services available with
> product, we implemented some of the common classes which we can use across
> platform.
> So I think we need place all of them in single location and use them by
> all products.
> As i know GREG, ML, APP Store already started developing REST API for
> their functionalities.
>
> As i know we all will implement CXF based JAX-RS application for REST
> services.
> And we will need some common handlers to implement security, input
> validations etc.
> So far we have implemented XACM, Basic auth handlers and some utulity
> classes for our use case and may be in future we can add few more.
> I have extracted them and placed in package named rest.api.util. Code can
> be found here[1].
>
> Please add details if you have done some work related to your REST APIs.
> Then we can discuss and come to conclusion on single package for them.
> We can add different security related handlers(authentication,
> authorization etc), input validation, resource matchers etc.
>
> [1]
> https://github.com/sanjeewa-malalgoda/carbon-apimgt/tree/feature-restapi-1.10.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.util
>

If those extensions are reusable with generic CXF applications on WSO2
platform you can add them here[1]

[1] -
https://github.com/wso2/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext


Thanks !

>
> Thanks,
> sanjeewa.
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev