peterjohnlawrence / com.inova8.odata2sparql.v4

Part of the overall odata2sparql solution, this odata2sparql.v4 module containing the olingo4 dependencies. In other words specifically for odata v4
http://inova8.com/bg_inova8.com/offerings/odata2sparql/
Apache License 2.0
5 stars 5 forks source link

add support for deltalinks/change tracking via OData #173

Closed peterjohnlawrence closed 4 years ago

peterjohnlawrence commented 4 years ago

Deltalinks provide chnage notifications. Responses to an entityset that requests a deltalink by providing a $deltatoken=nnn are serialized using EdmDeltaSerializer, created with odata.creatEdmDelatSerializer(). The deltatoken can be read using uriinfo.getdeltaTokenOption() $deltatoken is only applicable to certain requests, not including entity requets, but can include entityset with filters.

A POST/PUT/PATCH request can include in the HTTP Prefer Header "odata.track-changes" (example: request.addHeader("Prefer", "odata.track-changes")) When received the response should include a deltalink that contains the deltatoken to access subsequent changes.