yhknight / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Custom Query Option #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
General Issue Description:

We created a web service which uses additional application specific 
URL-Parameter like in this case:
http://host/services.svc/Products?myURLParamName=myURLParamValue

Now when implementing an OData consumer then a Custom Query Option can be used 
to support the addtional URL parameter:

Enumerable<OEntity> products = consumer.getEntities("Products")
                               .custom("myURLParamName", "myURLParamValue")
                               .execute();

But, this Custom Query Option can only be used in the API when reading objects. 
It is not supported by all other operations: POST, DELETE, UPDATE, ...

What version of the product are you using? On what operating system?
odata4j-0.6 on Wndows 7

Original issue reported on code.google.com by Timo.K...@googlemail.com on 26 Mar 2012 at 12:08