Re: REST API methods for managing deployment policies

2015-02-21 Thread Dakshika Jayathilaka
Hi Devs, I have added this to UI in 4.1.0-beta-deployment-policy-fix branch. please merge below PR: https://github.com/apache/stratos/pull/238 *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Feb 18, 2015 at 11:45 PM, Rajkumar Rajaratnam wrote:

Re: REST API methods for managing deployment policies

2015-02-18 Thread Rajkumar Rajaratnam
Hi, I have now implemented an API (getDeploymentPolicies) in CC to retrieve all the deployment policies and implemented the corresponding rest API (getDeploymentPolicies) as below. GET /deploymentPolicies @Dinithi, Please update the CLI for this API too. Thanks. On Wed, Feb 18, 2015 at 10:21 P

Re: REST API methods for managing deployment policies

2015-02-18 Thread Rajkumar Rajaratnam
On Wed, Feb 18, 2015 at 7:46 PM, Imesh Gunaratne wrote: > > On Wed, Feb 18, 2015 at 2:52 PM, Rajkumar Rajaratnam > wrote: >> >> >> @Imesh, do we need an API in CC to list all the deployment policies (like >> we already have an api in CC to list all network partitions)? >> >> Yes we do Raj, thank

Re: REST API methods for managing deployment policies

2015-02-18 Thread Imesh Gunaratne
On Wed, Feb 18, 2015 at 2:52 PM, Rajkumar Rajaratnam wrote: > > > @Imesh, do we need an API in CC to list all the deployment policies (like > we already have an api in CC to list all network partitions)? > > Yes we do Raj, thanks for pointing. We also need mapping CLI and UI features. Thanks -

Re: REST API methods for managing deployment policies

2015-02-18 Thread Dinithi De Silva
Gayan >>> >>> On Sun, Feb 15, 2015 at 8:03 PM, Shaheedur Haque (shahhaqu) < >>> shahh...@cisco.com> wrote: >>> >>>> Is there a reason not to make these APIs exactly like they were for >>>> 4.0? >>>> >>>> >&

Re: REST API methods for managing deployment policies

2015-02-18 Thread Rajkumar Rajaratnam
t;> >> On Sun, Feb 15, 2015 at 8:03 PM, Shaheedur Haque (shahhaqu) < >> shahh...@cisco.com> wrote: >> >>> Is there a reason not to make these APIs exactly like they were for >>> 4.0? >>> >>> >>> >>> *From:* Imesh Gunaratne

Re: REST API methods for managing deployment policies

2015-02-15 Thread Gayan Gunarathne
;> >> *From:* Imesh Gunaratne [mailto:im...@apache.org] >> *Sent:* 15 February 2015 03:56 >> *To:* dev >> *Subject:* Re: REST API methods for managing deployment policies >> >> >> >> Gayan/Udara: It would be great if you guys can keep updating a ma

Re: REST API methods for managing deployment policies

2015-02-15 Thread Gayan Gunarathne
..@apache.org] > *Sent:* 15 February 2015 03:56 > *To:* dev > *Subject:* Re: REST API methods for managing deployment policies > > > > Gayan/Udara: It would be great if you guys can keep updating a mail thread > with the progress of this modification; which tasks are done and

Re: REST API methods for managing deployment policies

2015-02-15 Thread Imesh Gunaratne
Shaheed: I still could not go through the new APIs in detail, do you think they are different from 4.0.0? Gayan: Thanks for the update! IMO it would be better to put all the information of this modification in a Google document and share in this thread. Thanks On Sun, Feb 15, 2015 at 10:21 PM, G

Re: REST API methods for managing deployment policies

2015-02-15 Thread Gayan Gunarathne
Sorry for the late reply.Now I have completed the followings. Rest API method for adding deployment policy Rest API method updating deployment policy Rest API method for removing deployment policy Also I have added the deployment policy to our samples. Also found that "SubscribableInfo" section

RE: REST API methods for managing deployment policies

2015-02-15 Thread Shaheedur Haque (shahhaqu)
Is there a reason not to make these APIs exactly like they were for 4.0? From: Imesh Gunaratne [mailto:im...@apache.org] Sent: 15 February 2015 03:56 To: dev Subject: Re: REST API methods for managing deployment policies Gayan/Udara: It would be great if you guys can keep updating a mail thread

Re: REST API methods for managing deployment policies

2015-02-15 Thread Imesh Gunaratne
Gayan/Udara: It would be great if you guys can keep updating a mail thread with the progress of this modification; which tasks are done and which tasks to be started. Then others should also be able to contribute when you are not around. Thanks On Fri, Feb 13, 2015 at 7:41 PM, Gayan Gunarathne w

Re: REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Sample JSON: https://github.com/apache/stratos/blob/4.1.0-beta-deployment-policy-fix/samples/applications/single-cartridge/artifacts/deployment-policy.json Sample curl request : curl -X POST -H "Content-Type: application/json" -d "@deployment-policy.json" -k -v -u admin:admin https:// ${host_ip}:$

Re: REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Sure. Will update the samples. Thanks, Gayan On Fri, Feb 13, 2015 at 7:22 PM, Dakshika Jayathilaka wrote: > Hi Gayan, > > Can you share JSON as wel. > > Thanks > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Fri, Feb 13, 2015 at 7:12

Re: REST API methods for managing deployment policies

2015-02-13 Thread Dakshika Jayathilaka
Hi Gayan, Can you share JSON as wel. Thanks *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Feb 13, 2015 at 7:12 PM, Gayan Gunarathne wrote: > Added two REST API methods for global deployment policy add/update. I have > pushed those changes to

REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Added two REST API methods for global deployment policy add/update. I have pushed those changes to the "4.1.0-beta-deployment-policy-fix" branch. POST /deploymentpolicy Add a deployment policyPUT/deploymen