stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject Re: Consistent Response structure for Stratos REST APIs
Date Mon, 07 Jul 2014 10:54:00 GMT
Udara, there are few other important points:
 * Introduce versioning to the API and preserve v1.0 released with Stratos
4.0.0 for a certain time period.
 * introduce token based  authentication.

May be we could do these with  separate tasks.

Thanks

On Monday, July 7, 2014, Imesh Gunaratne <imesh@apache.org> wrote:

> +1 Definitely, we need to do this. Jsend spec looks good, but I wonder
> whether we need a status attribute since HTTP status code already does that.
>
> One other important fact is that we need to  document the API definition
> very well with samples.
>
> Thanks
>
> On Monday, July 7, 2014, Udara Liyanage <udara@wso2.com
> <javascript:_e(%7B%7D,'cvml','udara@wso2.com');>> wrote:
>
>> HI,
>>
>> Currently different REST API methods sends response in different formats.
>> Some API methods have Response as the return type and some have Response.
>> IMO it is better if all the API methods fallow the same format. For
>> instance [1] discuss a simple response format.
>>
>> [1] http://labs.omniti.com/labs/jsend
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PPMC Member, Apache Stratos
>
>

-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PPMC Member, Apache Stratos

Mime
View raw message