Open boghyon opened 4 years ago
With $inlinecount=allpages
/OData/OData.svc/Products?$format=json&$inlinecount=allpages), I can see the "results"
property, which suggests that the service is supposed to be V2. However, requesting a collection without such queries still results in { "d": [...] }
which is a V1 format. Such inconsistency leads to issues on the client side. See for example stackoverflow.com/q/43661554.
@KanishManuja-MS @mikepizzo Please see also the related issue https://github.com/OData/ODataSamples/issues/154
The Reference Services page lists several OData V2 sample services. The description of the 2nd service says the following:
Also the
DataServiceVersion
in$metadata
/OData/OData.svc/$metadata) is2.0
which suggests that the service is OData V2.However: the format of entity collections conforms more OData V1 rather than V2. See, for example, https://services.odata.org/V2/(S(readwrite))/OData/OData.svc/Products?$format=json:
According to the spec:
So the question is: is the above mentioned service OData V1 or V2?