SAP / odata-library

Javascript library for processing OData protocol and developing OData clients.
Apache License 2.0
44 stars 15 forks source link

How is this project related to SAP Cloud SDK for JavaScript? #31

Closed gregorwolf closed 3 years ago

gregorwolf commented 3 years ago

Hello odata-library maintainers,

I hope you are aware of the SAP Cloud SDK for JavaScript project. It does already provide funtionality for OData supporting V2 and V4. So my questions are:

Best regards Gregor

mnezerka commented 3 years ago

Hi Gregor. This project doesn't have any relation to mentioned SDK. I'll try to describe difference (as I understand it):

Nobody will force you to use OData Library or SAP Cloud SDK. It is solely up to you. The technical differences were explained in previous paragraph. Those are points that could bring more light into use cases:

I hope it is a bit more clear now.

Michal

gregorwolf commented 3 years ago

Hi Michal,

thank you for the quick response.

I think you also have the very common miss-understanding due to the name of the SAP Cloud SDK that it's only able to call SAP Cloud API. But that is wrong. I think the main reason why it's called SAP Cloud SDK is because of it's use in the SAP Business Technology Platform (FKA SAP Cloud Platform).

Following the documentation Generate a Client Using the Command Line Interface a typed OData Client can be created for every OData V2 or V4 service.

Best Regards Gregor

mnezerka commented 3 years ago

Yes, you are right, it seems your can generate js wrappers for any OData service. It is long time since I checked javascript SAP Cloud SDK. I remember I tested very first versions of it and provided some feedback to the team. OData Library isn't new, it was developed for many years and become open source last year. And to be honest, the dynamic approach (without generating anything) is more preferred by our teams. We have also python sibling https://github.com/SAP/python-pyodata, which does the same as OData Library, but in python.

marikaner commented 3 years ago

I added a summary here.

Also, I would like to state, that the SDK does not hardcode any service URLs ;)