← Prev in month ← Prev in thread
Next in thread → Next in month →

$format / jsonverbose question

From
Ed Bourne <>
Date
2014-07-07T15:30:00+00:00
ID
Thread
$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
← Prev in month ← Prev in thread
Next in thread → Next in month →