cancel
Showing results for 
Search instead for 
Did you mean: 

How to upgrade OData to v2

former_member273875
Participant
0 Kudos

Dear experts,

At this topic https://blogs.sap.com/2018/08/21/introducing-sap-cloud-for-customer-odata-api-v2/ , SAP announced that they upgraded OData to v2. When I create new Odata by Odata Service Explorer, I don't find any option to choose the version for Odata and the new Odata service is still v1. How can I upgrade my Odata service to V2? Could you please give your advice?

Regards,

Huy-Nguyen


Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Huy,

The new C4C odata does not have a version 2 in the name.

You will see it as the c4codataapi

It is already mentioned in the blog you quoted that:

Identifying if your interface is using c4codata is relatively easy. To do so, you can simply check the URLs of any SAP OData service requests within your interface and verify if it contains the pattern ‘…/odata/v1/c4codata/…‘. If it does, that means, your interface is using the deprecated OData V1 and you should plan on updating that with the new OData API (c4codataapi). (Please note that the v1 in the URL indicates the framework version and it is the same for all C4C OData services.)

Thank you and kind regards,

Carina.

VishnAndr
Active Contributor
0 Kudos

Hi Huy-Nguyen,

C4C oData API v1 and C4C oData API v2 are nothing else but different sets of entities provided by SAP via two different endpoints ( v1 - via /odata/v1/c4codata/ and v2 - via /odata/v1/c4codataapi/). v2 has more number of entities available, more flexible and future proof where SAP is going to deliver more improvements. Customers/Partners who create their own oData services via oData Editor do not belong to any of versions above. They just create their own oData services.


Probably, you might be confused about oData v2 and oData v4. It's completely different story. oData v2 and oData v4 are generic standards.

Both versions of C4C oData API (v1 and v2) are built with oData v2 (proof)