You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Francesco Chicchiriccò <il...@apache.org> on 2018/07/17 11:55:47 UTC

How to implement REST batch processing

Hi all,
I was wondering whether it is possible with CXF to handle a payload 
according to OData 4.0 specs [1].

Essentially, I would like to handle an endpoint like as

POST /$batch

where the service implementation is able, for each of the provided 
multi-parts, to lookup into the CXF's URL resolution, to match the 
respective service implementation, pass the payload and get the result.

Any hint?
Regards.

[1] 
http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html#_Toc372793748

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: How to implement REST batch processing

Posted by Francesco Chicchiriccò <il...@apache.org>.
FYI, the Proxy Client stuff is now working, I'd consider the PoC as 
complete now.
Regards.

On 26/07/2018 09:35, Francesco Chicchiriccò wrote:
> On 25/07/2018 17:08, Colm O hEigeartaigh wrote:
>> Hi Francesco,
>>
>> Pretty cool, is it something you are considering to donate to CXF, or to
>> keep separate?
>
> Hi Colm,
> thanks!
>
> I am doing this PoC because I'd like to eventually propose it for the 
> Syncope REST interface, but I have no interest in keeping it separate 
> from CXF; only, I have no idea of where such piece of code could find 
> place in the source tree...
>
> Before considering the PoC complete, I would first try to solve
>
> https://github.com/ilgrosso/batch-rest-poc/issues/2
>
> Maybe you can suggest where to start to look at, in the CXF sources.
>
> Regards.
>
>> On Tue, Jul 24, 2018 at 10:23 AM, Francesco Chicchiriccò 
>> <il...@apache.org> wrote:
>>
>>> Hi,
>>> I have been working on this topic, and built a PoC:
>>>
>>> https://github.com/ilgrosso/batch-rest-poc
>>>
>>> Please let me have your thoughts, thanks.
>>> Regards.
>>>
>>> On 17/07/2018 13:55, Francesco Chicchiriccò wrote:
>>>
>>>> Hi all,
>>>> I was wondering whether it is possible with CXF to handle a payload
>>>> according to OData 4.0 specs [1].
>>>>
>>>> Essentially, I would like to handle an endpoint like as
>>>>
>>>> POST /$batch
>>>>
>>>> where the service implementation is able, for each of the provided
>>>> multi-parts, to lookup into the CXF's URL resolution, to match the
>>>> respective service implementation, pass the payload and get the 
>>>> result.
>>>>
>>>> Any hint?
>>>> Regards.
>>>>
>>>> [1] 
>>>> http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html#_Toc372793748

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: How to implement REST batch processing

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 25/07/2018 17:08, Colm O hEigeartaigh wrote:
> Hi Francesco,
>
> Pretty cool, is it something you are considering to donate to CXF, or to
> keep separate?

Hi Colm,
thanks!

I am doing this PoC because I'd like to eventually propose it for the 
Syncope REST interface, but I have no interest in keeping it separate 
from CXF; only, I have no idea of where such piece of code could find 
place in the source tree...

Before considering the PoC complete, I would first try to solve

https://github.com/ilgrosso/batch-rest-poc/issues/2

Maybe you can suggest where to start to look at, in the CXF sources.

Regards.

> On Tue, Jul 24, 2018 at 10:23 AM, Francesco Chicchiriccò <il...@apache.org> wrote:
>
>> Hi,
>> I have been working on this topic, and built a PoC:
>>
>> https://github.com/ilgrosso/batch-rest-poc
>>
>> Please let me have your thoughts, thanks.
>> Regards.
>>
>> On 17/07/2018 13:55, Francesco Chicchiriccò wrote:
>>
>>> Hi all,
>>> I was wondering whether it is possible with CXF to handle a payload
>>> according to OData 4.0 specs [1].
>>>
>>> Essentially, I would like to handle an endpoint like as
>>>
>>> POST /$batch
>>>
>>> where the service implementation is able, for each of the provided
>>> multi-parts, to lookup into the CXF's URL resolution, to match the
>>> respective service implementation, pass the payload and get the result.
>>>
>>> Any hint?
>>> Regards.
>>>
>>> [1] http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html#_Toc372793748

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: How to implement REST batch processing

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Francesco,

Pretty cool, is it something you are considering to donate to CXF, or to
keep separate?

Colm.

On Tue, Jul 24, 2018 at 10:23 AM, Francesco Chicchiriccò <
ilgrosso@apache.org> wrote:

> Hi,
> I have been working on this topic, and built a PoC:
>
> https://github.com/ilgrosso/batch-rest-poc
>
> Please let me have your thoughts, thanks.
> Regards.
>
> On 17/07/2018 13:55, Francesco Chicchiriccò wrote:
>
>> Hi all,
>> I was wondering whether it is possible with CXF to handle a payload
>> according to OData 4.0 specs [1].
>>
>> Essentially, I would like to handle an endpoint like as
>>
>> POST /$batch
>>
>> where the service implementation is able, for each of the provided
>> multi-parts, to lookup into the CXF's URL resolution, to match the
>> respective service implementation, pass the payload and get the result.
>>
>> Any hint?
>> Regards.
>>
>> [1] http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protoco
>> l/odata-v4.0-os-part1-protocol.html#_Toc372793748
>>
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: How to implement REST batch processing

Posted by Francesco Chicchiriccò <il...@apache.org>.
Hi,
I have been working on this topic, and built a PoC:

https://github.com/ilgrosso/batch-rest-poc

Please let me have your thoughts, thanks.
Regards.

On 17/07/2018 13:55, Francesco Chicchiriccò wrote:
> Hi all,
> I was wondering whether it is possible with CXF to handle a payload 
> according to OData 4.0 specs [1].
>
> Essentially, I would like to handle an endpoint like as
>
> POST /$batch
>
> where the service implementation is able, for each of the provided 
> multi-parts, to lookup into the CXF's URL resolution, to match the 
> respective service implementation, pass the payload and get the result.
>
> Any hint?
> Regards.
>
> [1] 
> http://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html#_Toc372793748

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/