+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 <[email protected]> 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 > > <http://sanjeewamalalgoda.blogspot.com/>blog > :http://sanjeewamalalgoda.blogspot.com/ > <http://sanjeewamalalgoda.blogspot.com/> > > > > _______________________________________________ > Dev mailing list > [email protected] > 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 [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
