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

Reply via email to