Re: What is the use of /init in Rest API

2014-12-03 Thread Mariangela Hills
+1 It will be very useful to others if there were comments for each method. In fact, I raised a JIRA [1] regarding this recently. [1] https://issues.apache.org/jira/browse/STRATOS-987 Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. w:

Re: What is the use of /init in Rest API

2014-12-02 Thread Isuru Perera
Hi, On Tue, Dec 2, 2014 at 2:21 PM, Manula Chathurika Thantriwatte < manu...@wso2.com> wrote: > Hi, > > Yes, it used to validate Stratos Manager URL in CLI. > Please add some comments to the methods. > > Thanks ! > > On Tue, Dec 2, 2014 at 1:07 PM, Shiroshica Kulatilake > wrote: > >> I think th

Re: What is the use of /init in Rest API

2014-12-02 Thread Udara Liyanage
Hi, Thanks Shiro and Manula On Tue, Dec 2, 2014 at 2:21 PM, Manula Chathurika Thantriwatte < manu...@wso2.com> wrote: > Hi, > > Yes, it used to validate Stratos Manager URL in CLI. > > Thanks ! > > On Tue, Dec 2, 2014 at 1:07 PM, Shiroshica Kulatilake > wrote: > >> I think this is used by CLI t

Re: What is the use of /init in Rest API

2014-12-02 Thread Manula Chathurika Thantriwatte
Hi, Yes, it used to validate Stratos Manager URL in CLI. Thanks ! On Tue, Dec 2, 2014 at 1:07 PM, Shiroshica Kulatilake wrote: > I think this is used by CLI to validate stratos manager url > > On Tue, Dec 2, 2014 at 12:58 PM, Udara Liyanage wrote: > >> Hi, >> >> What is the use of following i

Re: What is the use of /init in Rest API

2014-12-01 Thread Shiroshica Kulatilake
I think this is used by CLI to validate stratos manager url On Tue, Dec 2, 2014 at 12:58 PM, Udara Liyanage wrote: > Hi, > > What is the use of following init(). > > @GET > @Path("/init") > @AuthorizationAction("/permission/admin/restlogin") > public Response initialize() > throws RestAP

What is the use of /init in Rest API

2014-12-01 Thread Udara Liyanage
Hi, What is the use of following init(). @GET @Path("/init") @AuthorizationAction("/permission/admin/restlogin") public Response initialize() throws RestAPIException { StratosApiResponse response = new StratosApiResponse(); response.setMessage("Successfully authenticated"); re