Hi All,

I have added custom implementation for PATCH as mention in [1]. What is the
package naming convention we can use for this implementation. Will it be
fine something like "org.wso2.identity.annotations" ?

[1]http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod


On Mon, Jul 7, 2014 at 12:22 PM, Gayan Gunawardana <ga...@wso2.com> wrote:

> Thanks Ishara & Supun.
>
> Will proceed accordingly.
>
> Thanks,
> Gayan
>
>
> On Mon, Jul 7, 2014 at 12:11 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> yeah. it looks like patch method is not supported OOTB, since as per the
>> spec[5] patch method is not specified. So the usual practice seems to be
>> implementing it by the user..
>>
>> [5]
>> http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html
>>
>> thanks,
>>
>>
>> On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna <isha...@wso2.com>
>> wrote:
>>
>>> Hi Gayan,
>>>
>>>
>>> On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana <ga...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> The requirement based on [1]. Since wso2 identity server can act as a
>>>> SCIM provider, it exposes  REST end points with standard http methods (GET,
>>>> POST, PUT, DELETE). How ever according to [2] http PATCH method also
>>>> require to do patch operation. The idea of patch operation is, suppose we
>>>> need to add new user to existing group, with update operation we can update
>>>> entire list of users in a particular group so we have to send complete set
>>>> of users. Patch operation supports merging of existing users with new
>>>> users.
>>>>
>>>> The bottleneck to implement patch operation is currently [3] does not
>>>> support http PATCH method directly. But according to [4] it allows custom
>>>> annotation such as @Update or @Patch.
>>>>
>>>> WDYT?
>>>>
>>>
>>> +1,
>>> You will have to do the custom implementation to get PATCH support.
>>>
>>>>
>>>>
>>>> [1] https://wso2.org/jira/browse/IDENTITY-1891
>>>>
>>>> [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1
>>>>
>>>> [3] http://cxf.apache.org/docs/jax-rs.html
>>>>
>>>> [4]
>>>> http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod
>>>>
>>>> Thanks,
>>>> Gayan
>>>>
>>>>
>>>> --
>>>> Gayan Gunawardana
>>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>>> Email: ga...@wso2.com
>>>> Mobile: +94 (71) 8020933
>>>>
>>>
>>>
>>>
>>> --
>>> Ishara Karunarathna
>>> Senior Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
>>> 718211678
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com <sup...@wso2.com>
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to