Re: [Error] Can not add properties to an application

2015-05-11 Thread Mariangela Hills
Thanks, for your feedback Udara! I will verify this process and document it in Stratos wiki. Regards, Mariangela *--* *Mariangela Hills* PMC Member & Committer of Apache Stratos Senior Technical Writer WSO2, Inc. lean.enterprise.middleware. m: +94 773 500185 w: http://wso2.com

Re: [Error] Can not add properties to an application

2015-05-11 Thread Udara Liyanage
Hi Mari, I could n't mention that you can not access metadata API without the token. There are two ways to obtain the token, which is created for the app and passed as payload into the instance. Either loginto the instance and obtain the token or, enable debug logs to view the payload. I am wonder

Re: [Error] Can not add properties to an application

2015-05-11 Thread Udara Liyanage
Hi Mari, I will have a look. On 11 May 2015 10:17 pm, "Mariangela Hills" wrote: > Hi Vishanth, > > I executed the REST API command using the new JSON definition, but I still > get an error. > > MariH:Master-branch Admin16$ curl -X POST -H "Content-Type: > application/json" -d @'property.json' -k

Re: [Error] Can not add properties to an application

2015-05-11 Thread Imesh Gunaratne
It looks like we need to refine the response messages and other bean classes used in the metadata API. It's not using the same conventions we have used in the REST API. On Mon, May 11, 2015 at 10:17 PM, Mariangela Hills wrote: > Hi Vishanth, > > I executed the REST API command using the new JSON

Re: [Error] Can not add properties to an application

2015-05-11 Thread Mariangela Hills
Hi Vishanth, I executed the REST API command using the new JSON definition, but I still get an error. MariH:Master-branch Admin16$ curl -X POST -H "Content-Type: application/json" -d @'property.json' -k -v -u admin:admin https://localhost:9443/metadata/api/application/wordpress/properties > POST

Re: [Error] Can not add properties to an application

2015-05-11 Thread Udara Liyanage
Hi Mari, Correct format is the one Vishanth mentioned On 11 May 2015 8:32 pm, "Vishanth Balasubramaniam" wrote: > Hi Mari, > > It should be as follows. > [ >{ > "key":"wka5", > "values":"192.163.4.2" >}, >{ > "key":"wka6", > "values":"192.163.6.6" >} > ] >

Re: [Error] Can not add properties to an application

2015-05-11 Thread Vishanth Balasubramaniam
Hi Mari, It should be as follows. [ { "key":"wka5", "values":"192.163.4.2" }, { "key":"wka6", "values":"192.163.6.6" } ] Regards, Vishanth On Mon, May 11, 2015 at 7:49 PM, Mariangela Hills wrote: > Hi Devs, > > I was trying to add properties to an applicati

[Error] Can not add properties to an application

2015-05-11 Thread Mariangela Hills
Hi Devs, I was trying to add properties to an application (POST /metadata/api/application//properties) and got an error [1]. There were no corresponding log files printed. I used [2] as the JSON. [1] MariH:Master-branch Admin16$ curl -X POST -H "Content-Type: application/json" -d @'meta.json' -