[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: $format / jsonverbose question
In the odata docs, there is some info on json verbose (ie:
http://www.odata.org/documentation/odata-version-3-0/json-verbose-format/ ), something I hadn’t noticed in the past. Specifically, it refers to a $format option of jsonverbose.
It can also be called using the request header to get the same, ie application/json;odata=verbose On the test systems I tried, ?$format=jsonverbose didn’t work (V2/V3) but adding an accept header of application/json;odata=verbose did. The difference seems to be that when you use verbose, the returned object is simpler (no meta information).
Seems a bit backwards, I would have thought verbose would give me more info, not a simpler set. http://services.odata.org/V3/OData/OData.svc/?$format=json - metadata vs http://services.odata.org/V3/OData/OData.svc/ - no metadata, ie simpler accept: application/json;odata=verbose I also notice that in V4, the verbose option doesn’t work at all. http://services.odata.org/V4/OData/OData.svc/ What was the intent here? Cheers ed |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]