You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by Abhay Kumar <ab...@incture.com> on 2014/02/11 07:44:04 UTC

Need help to expose a function with parameter as entityset(List of Entity)

Hi,

There is a requirement where we need  pass a list of Entity as parameter to
a function.

Function Like:

List<String> saveEmployees(List<Employee> employees){
}

 Please help us to know how it can be exposed using Olingo Rest.
-- 

Thanks and Regards,

Abhay Kumar (Senior Java Developer)

Mobile (+91-9945427409)

abhay.kumar@incture.com | www.incture.com

DISCLAIMER:
This message containsprivileged and confidential information and is
intended only for anindividual(s) named. If you are not the intended
recipient, you should notdisseminate, distribute, store, print, copy or
deliver this message. Pleasenotify the sender immediately by e-mail if you
feel that you have received thise-mail in error and you are advised to
please delete this e-mail from yoursystem. E-mail transmission cannot be
guaranteed to be secure or error-free asinformation may be intercepted,
corrupted, lost, destroyed, arrive late, beincomplete or contain viruses.
The sender does not accept any liability for anyerrors or omissions in the
contents of this message which arise as a result ofe-mail transmission. If
verification is required, please request a hard-copyversion.

Re: Need help to expose a function with parameter as entityset(List of Entity)

Posted by "Klevenz, Stephan" <st...@sap.com>.
Hi Abhay,

Maybe $batch [1] could fit to your requirement. OData 2.0 supports post or
put for single entries only. Have also a look at our tutorials [2].

Regards,
Stephan 

[1] 
http://www.odata.org/documentation/odata-v2-documentation/batch-processing/
[2] 
http://olingo.incubator.apache.org/doc/tutorials/Olingo_Tutorial_AdvancedRe
adWrite_Batch.html

On 11.02.14 07:44, "Abhay Kumar" <ab...@incture.com> wrote:

>Hi,
>
>There is a requirement where we need  pass a list of Entity as parameter
>to
>a function.
>
>Function Like:
>
>List<String> saveEmployees(List<Employee> employees){
>}
>
> Please help us to know how it can be exposed using Olingo Rest.
>-- 
>
>Thanks and Regards,
>
>Abhay Kumar (Senior Java Developer)
>
>Mobile (+91-9945427409)
>
>abhay.kumar@incture.com | www.incture.com
>
>DISCLAIMER:
>This message containsprivileged and confidential information and is
>intended only for anindividual(s) named. If you are not the intended
>recipient, you should notdisseminate, distribute, store, print, copy or
>deliver this message. Pleasenotify the sender immediately by e-mail if you
>feel that you have received thise-mail in error and you are advised to
>please delete this e-mail from yoursystem. E-mail transmission cannot be
>guaranteed to be secure or error-free asinformation may be intercepted,
>corrupted, lost, destroyed, arrive late, beincomplete or contain viruses.
>The sender does not accept any liability for anyerrors or omissions in the
>contents of this message which arise as a result ofe-mail transmission. If
>verification is required, please request a hard-copyversion.