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 already contains the attribute for deployment policy.So I think we can use that attribute as it is. Thanks, Gayan On Sun, Feb 15, 2015 at 9:26 AM, Imesh Gunaratne <im...@apache.org> wrote: > 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 <gay...@wso2.com> wrote: > >> 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}:${host_port}/api/deploymentPolicies >> >> >> Thanks, >> Gayan >> >> >> On Fri, Feb 13, 2015 at 7:25 PM, Gayan Gunarathne <gay...@wso2.com> >> wrote: >> >>> Sure. Will update the samples. >>> >>> Thanks, >>> Gayan >>> >>> On Fri, Feb 13, 2015 at 7:22 PM, Dakshika Jayathilaka <daksh...@wso2.com >>> > 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 PM, Gayan Gunarathne <gay...@wso2.com> >>>> wrote: >>>> >>>>> 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 >>>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Adding+a+Cartridge+via+REST+API> >>>>> Add a deployment policyPUT/deploymentpolicy >>>>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Updating+a+Cartridge+via+REST+API> >>>>> Update existing deployment policy >>>>> Added the sample deployment policy to the single-cartridge sample.Will >>>>> update the other samples as well. >>>>> >>>>> Will add another REST methods for retrieve and remove deployment >>>>> policy. >>>>> >>>>> Thanks, >>>>> Gayan >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Gayan Gunarathne >>>>> Technical Lead >>>>> WSO2 Inc. (http://wso2.com) >>>>> email : gay...@wso2.com | mobile : +94 766819985 >>>>> >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> Gayan Gunarathne >>> Technical Lead >>> WSO2 Inc. (http://wso2.com) >>> email : gay...@wso2.com | mobile : +94 766819985 >>> >>> >> >> >> >> -- >> >> Gayan Gunarathne >> Technical Lead >> WSO2 Inc. (http://wso2.com) >> email : gay...@wso2.com | mobile : +94 766819985 >> >> > > > > -- > Imesh Gunaratne > > Technical Lead, WSO2 > Committer & PMC Member, Apache Stratos > -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985