Reputation: 99
We have a requirement of using both Odata v3 and Odata v4.
Actually we need to hit the web services exposing both these versions. We are using Java platform. What are the changes between these two versions — Will it be a major change?
Query formation to hit those web services changes depending upon the version? Does the API also change? What are the technical points we need to take care of while calling both of these versions?
Will there be any difference in the response we get? I heard the default response for v4 is JSON and for V3 is XML — is that true?
I tried with the below examples:
http://services.odata.org/V3/Northwind/Northwind.svc/Customers
http://services.odata.org/V4/Northwind/Northwind.svc/Customers
Kindly provide us the details.
Upvotes: 6
Views: 9500
Reputation: 206876
There are quite some differences between OData v3 and v4, so it is most likely not going to be straightforward to support v4.
As far as I know the default format in v4 is indeed JSON, but it also supports XML; you're not required to use JSON.
Upvotes: 6