Page 1 of 1

REST service on top of existing Service Implementation Admin

Posted: Tue Jun 11, 2013 12:17 am
by sushma
Hi ,
i am using BLC 3 . In admin module we are trying to create a REST webservice layer on top of the existing service layer
i.e. AdminEntityService , our class implements the exsiting AdminEntityService

like for eg : ---
public class WebServiceAdminEntityService implements AdminEntityService{
// to do
}

And we will be consuming this service methods in the controller AdminBasicEntityController .
Now my question is that is this approach correct . Please correct me if my understanding is wrong .
And where can i include this new webservice class . where should i place this new class --
in broadleaf-open-admin-platform or
in admin .

Re: REST service on top of existing Service Implementation Admin

Posted: Wed Jun 12, 2013 1:13 am
by phillipuniverse
If you are doing anything with REST, I wouldn't try bothering with anything admin-specific, especially not try to override any of the admin controllers. Instead, you can add your own custom REST endpoints pretty easily. All of our REST documentation for 3.0 is currently at http://docs.broadleafcommerce.org/dev/R ... rials.html