RE: Re-factoring REST API

2015-04-24 Thread Shaheedur Haque (shahhaqu)
(vlim); Martin Eppel (meppel); Imesh Gunaratne Subject: Re: Re-factoring REST API Hi, This modification will expose the error status as 400 bad request, 404 not found or 500 internal server error other than sending 400 bad request for every server-side error. Thanks. On Thu, Apr 23, 2015 at 2:24

Re: Re-factoring REST API

2015-04-23 Thread Dinithi De Silva
> > > *From:* Dinithi De Silva [mailto:dinit...@wso2.com] > *Sent:* 23 April 2015 09:48 > *To:* dev > *Cc:* Vanson Lim (vlim); Shaheedur Haque (shahhaqu); Martin Eppel > (meppel); Imesh Gunaratne > *Subject:* Re: Re-factoring REST API > > > > Hi, > > > >

RE: Re-factoring REST API

2015-04-23 Thread Shaheedur Haque (shahhaqu)
[mailto:dinit...@wso2.com] Sent: 23 April 2015 09:48 To: dev Cc: Vanson Lim (vlim); Shaheedur Haque (shahhaqu); Martin Eppel (meppel); Imesh Gunaratne Subject: Re: Re-factoring REST API Hi, I have listed the changes in a point form below. * In all the API methods the response message format

Re: Re-factoring REST API

2015-04-23 Thread Dinithi De Silva
Hi, I have listed the changes in a point form below. - *In all the API methods the response message format will be changed to display a status message either with "Success" or "Error" . Status code will be removed from the response message.* Eg: *Current format* return Response.status

Re: Re-factoring REST API

2015-04-22 Thread Imesh Gunaratne
Just to clarify we are only changing the HTTP status codes and response message formats (of error and successful messages) in the REST API. We are not changing any of the API method definitions or JSON definitions. Dinithi: It would be great if you could list of out the changes in point form. Tha

Re: Re-factoring REST API

2015-04-21 Thread Anuruddha Liyanarachchi
Hi, Please find the list of current status codes that are being used [1]. [1] https://docs.google.com/spreadsheets/d/1orFbcvkrowtz_LKJL7IXzQgBBxloMkFICobZGxlKMuA/edit?usp=sharing On Wed, Apr 22, 2015 at 11:15 AM, Dinithi De Silva wrote: > Hi all, > > We are in the process of re-factoring the R

Re-factoring REST API

2015-04-21 Thread Dinithi De Silva
Hi all, We are in the process of re-factoring the REST API with the following changes (As discussed in a separate mail thread - [Discuss] REST API Improvements ). 1. *Moving non-API methods to StratosApiV41Utils class from **StratosApiV41 class*. (Refer the mail thread - API methods for tenants)