Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that the resourcePath option can either in specified in the URI as a part of the URI path, as an endpoint option ?resourcePath=<resource-path> or as a header value CamelOlingo2.resourcePath. The OData entity key predicate can either be a part of the resource path, e.g. Manufacturers('1'), where '1' is the key predicate, or be specified separately with resource path Manufacturers and keyPredicate option '1'

EndpointOptionsHTTP MethodResult Body Type
batchdata
POST with multipart/mixed batch request
java.util.List<org.apache.camel.component.olingo2.api.batch.Olingo2BatchResponse>
createdata, resourcePath
POST
org.apache.olingo.odata2.api.ep.entry.ODataEntry for new entries
org.apache.olingo.odata2.api.commons.HttpStatusCodes for other OData resources
deleteresourcePath
DELETE
org.apache.olingo.odata2.api.commons.HttpStatusCodes
mergedata, resourcePath
MERGE
org.apache.olingo.odata2.api.commons.HttpStatusCodes
patchdata, resourcePath
PATCH
org.apache.olingo.odata2.api.commons.HttpStatusCodes
readqueryParams, resourcePath
GET

Depends on OData resource being queried as described next

updatedata, resourcePath
PUT
org.apache.olingo.odata2.api.commons.HttpStatusCodes

...

OData Resource TypeResource URI from resourcePath and keyPredicateIn or Out Body Type
Entity data model$metadata
org.apache.olingo.odata2.api.edm.Edm
Service document/
org.apache.olingo.odata2.api.servicedocument.ServiceDocument
OData feed<entity-set>
org.apache.olingo.odata2.api.ep.feed.ODataFeed
OData entry<entity-set>(<key-predicate>)
org.apache.olingo.odata2.api.ep.entry.ODataEntry for Out body (response) and 
java.util.Map<String, Object> for In body (request)
Simple property<entity-set>(<key-predicate>)/<simple-property>Appropriate Java data type as described by Olingo EdmProperty
Simple property value<entity-set>(<key-predicate>)/<simple-property>/$valueAppropriate Java data type as described by Olingo EdmProperty
Complex property<entity-set>(<key-predicate>)/<complex-property>
java.util.Map<String, Object>
Zero or one association link<entity-set>(<key-predicate>/$link/<one-to-one-entity-set-property>
String for response
java.util.Map<String, Object> with key property names and values for request
Zero or many association links<entity-set>(<key-predicate>/$link/<one-to-many-entity-set-property>
java.util.List<String> for response
java.util.List<java.util.Map<String, Object>> containing list of key property names and values for request
Count<resource-uri>/$count
java.lang.Long

...