You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Dakshika Jayathilaka <da...@wso2.com> on 2015/01/14 12:14:07 UTC

Group JSON differ on POST and GET

Hi devs,

I have notice that POST /groups JSON definition and GET /groups/{groupid}
send different JSON variable name in *groupscalingenable*.

in POST  - isGroupScalingEnabled

Return as

GET- groupScalingEnabled

Can some one have a look?

Thank you,

Bst Regards,

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

Re: Group JSON differ on POST and GET

Posted by Imesh Gunaratne <im...@apache.org>.
The above change has only updated the get and set methods in the
CartridgeBean class, I have now renamed the attribute to
CartridgeBean.groupScalingEnabled and updated all the sample applications.

Thanks

On Thu, Jan 15, 2015 at 8:07 AM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> We have to update the samples then. The reason for this is when json is
> converted to Java bean, is part is not needed since property is a boolean.
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Group JSON differ on POST and GET

Posted by Udara Liyanage <ud...@wso2.com>.
Hi,

We have to update the samples then. The reason for this is when json is
converted to Java bean, is part is not needed since property is a boolean.

Re: Group JSON differ on POST and GET

Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Fixed in commit 2594e3d961e34fd7baf124018235c9786168c14b

On Wed, Jan 14, 2015 at 6:29 PM, Manula Chathurika Thantriwatte <
manulac@wso2.com> wrote:

> Hi Dakshika,
>
> This issue is fixed now. Please change the property isGroupScalingEnabled
> to groupScalingEnabled. Otherwise the value didn't set properly.
>
> Thanks !
>
> On Wed, Jan 14, 2015 at 5:06 PM, Manula Chathurika Thantriwatte <
> manulac@wso2.com> wrote:
>
>> Hi,
>>
>> I'll look into this.
>>
>> Thanks !
>>
>> On Wed, Jan 14, 2015 at 4:44 PM, Dakshika Jayathilaka <da...@wso2.com>
>> wrote:
>>
>>> Hi devs,
>>>
>>> I have notice that POST /groups JSON definition and GET
>>> /groups/{groupid} send different JSON variable name in
>>> *groupscalingenable*.
>>>
>>> in POST  - isGroupScalingEnabled
>>>
>>> Return as
>>>
>>> GET- groupScalingEnabled
>>>
>>> Can some one have a look?
>>>
>>> Thank you,
>>>
>>> Bst Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>
>>
>>
>> --
>> Regards,
>> Manula Chathurika Thantriwatte
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>> lean . enterprise . middleware
>>
>> email : manulac@wso2.com / manula@apache.org
>> phone : +94 772492511
>> blog : http://manulachathurika.blogspot.com/
>>
>>
>>
>>
>
>
> --
> Regards,
> Manula Chathurika Thantriwatte
> Software Engineer
> WSO2 Inc. : http://wso2.com
> lean . enterprise . middleware
>
> email : manulac@wso2.com / manula@apache.org
> phone : +94 772492511
> blog : http://manulachathurika.blogspot.com/
>
>
>
>


-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/

Re: Group JSON differ on POST and GET

Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Hi Dakshika,

This issue is fixed now. Please change the property isGroupScalingEnabled
to groupScalingEnabled. Otherwise the value didn't set properly.

Thanks !

On Wed, Jan 14, 2015 at 5:06 PM, Manula Chathurika Thantriwatte <
manulac@wso2.com> wrote:

> Hi,
>
> I'll look into this.
>
> Thanks !
>
> On Wed, Jan 14, 2015 at 4:44 PM, Dakshika Jayathilaka <da...@wso2.com>
> wrote:
>
>> Hi devs,
>>
>> I have notice that POST /groups JSON definition and GET /groups/{groupid}
>> send different JSON variable name in *groupscalingenable*.
>>
>> in POST  - isGroupScalingEnabled
>>
>> Return as
>>
>> GET- groupScalingEnabled
>>
>> Can some one have a look?
>>
>> Thank you,
>>
>> Bst Regards,
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>
>
>
> --
> Regards,
> Manula Chathurika Thantriwatte
> Software Engineer
> WSO2 Inc. : http://wso2.com
> lean . enterprise . middleware
>
> email : manulac@wso2.com / manula@apache.org
> phone : +94 772492511
> blog : http://manulachathurika.blogspot.com/
>
>
>
>


-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/

Re: Group JSON differ on POST and GET

Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Hi,

I'll look into this.

Thanks !

On Wed, Jan 14, 2015 at 4:44 PM, Dakshika Jayathilaka <da...@wso2.com>
wrote:

> Hi devs,
>
> I have notice that POST /groups JSON definition and GET /groups/{groupid}
> send different JSON variable name in *groupscalingenable*.
>
> in POST  - isGroupScalingEnabled
>
> Return as
>
> GET- groupScalingEnabled
>
> Can some one have a look?
>
> Thank you,
>
> Bst Regards,
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>



-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/