Re: Sequential order of the REST API response message and status code is incorrect

2015-05-11 Thread Imesh Gunaratne
Application deployed successfully: [application] >>> subscription-c1', u'statusCode': 202} >>> >>> >>> >>> Current (new) return msg: >>> >>> {u'message': u'Application deployed successfully: [application] >>> s

Re: Sequential order of the REST API response message and status code is incorrect

2015-05-11 Thread Mariangela Hills
cation deployed successfully: [application] >> subscription-c1', u'statusCode': 202} >> >> >> >> Thanks >> >> >> >> Martin >> >> >> >> *From:* Imesh Gunaratne [mailto:im...@apache.org] >> *Sent:* Sa

Re: Sequential order of the REST API response message and status code is incorrect

2015-05-11 Thread Imesh Gunaratne
> > Martin > > > > *From:* Imesh Gunaratne [mailto:im...@apache.org] > *Sent:* Saturday, May 09, 2015 9:27 AM > *To:* dev > *Subject:* Re: Sequential order of the REST API response message and > status code is incorrect > > > > Yes the conclusion of the pre

RE: Sequential order of the REST API response message and status code is incorrect

2015-05-10 Thread Martin Eppel (meppel)
15 9:27 AM To: dev Subject: Re: Sequential order of the REST API response message and status code is incorrect Yes the conclusion of the previous discussion was to remove statusCode attribute and add a new attribute called status. The status attribute could contain either "successful&quo

Re: Sequential order of the REST API response message and status code is incorrect

2015-05-09 Thread Imesh Gunaratne
Yes the conclusion of the previous discussion was to remove statusCode attribute and add a new attribute called status. The status attribute could contain either "successful" or "error". Thanks On Sat, May 9, 2015 at 6:11 PM, Udara Liyanage wrote: > the order of the fields does not IMO. For in

Re: Sequential order of the REST API response message and status code is incorrect

2015-05-09 Thread Udara Liyanage
the order of the fields does not IMO. For instance a client/UI may extract the message and display.

Re: Sequential order of the REST API response message and status code is incorrect

2015-05-09 Thread Chamila De Alwis
Hi Mary, I have a couple of questions here regarding the significance of this field in the response body. 1. I remember a discussion where it was considered to remove the "statusCode" since it is duplicate information. I'm not sure what was the conclusion in that discussion. However, having the s

Sequential order of the REST API response message and status code is incorrect

2015-05-09 Thread Mariangela Hills
Hi Devs, Currently, when executing any REST API commands, the status code appears after the message and not before the message, as discussed in the mail thread. This needs to be corrected. I have created a JIRA [1] to address this issue. I will update the wiki docs with the correct format and new