-
Type:
New Feature
-
Status: Deferred
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: V4.0_WD01
-
Fix Version/s: None
-
Component/s: ATOM Format, JSON Format, Protocol
-
Labels:None
-
Proposal:
We have added the ability to reference entities within a result using entity references.
https://www.oasis-open.org/apps/org/workgroup/odata/download.php/48152/latest proposes adding the ability to request that a result be flattened; i.e., that all entries are returned at the top level, and that relationships are represented using entity references.
Two quick remarks/question:
The document states that "OData version 4.0 clients MUST be prepared to deal with whose specified set is different then the root set". Obviously implied is that when the client specifies that it accepts the content in a flattened form but clients that don't specify they do in the content type would not need to be able to deal with this.
Why do we need /@Flat to be appended in the metadata url in the JSON format? We know already the response is flattened and for every object that is not of the type referenced by the metadata url we have an odata.set annotation that the client will need to check for anyway.