cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud Platform SDK for iOS - using multiple API's

VenuK
Advisor
Advisor
0 Kudos

We have developed an application using SAP Cloud Platform SDK for iOS. Application reads all products from Product Master API and we are planning to enhance the current application and include more API’s or one more API to read and display more/additional data. It would be helpful, if you can share any documents/references on how we can consume two API’s in the current application which is generated using the iOS SDK?

Accepted Solutions (0)

Answers (1)

Answers (1)

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

I assume the API's are from an OData source? The following blog series shows step by step how to create a project, add the SAP iOS SDK libraries to the project, and then generate the proxy classes which can be used by the application to access the data exposed by the OData backend.

https://blogs.sap.com/2018/02/14/getting-started-with-the-sap-cloud-platform-sdk-for-ios-part-1/

If you modify the backend OData source, I believe you would regenerate the proxy classes and re-add them to your project. Alternatively you could run the proxy generation step twice, once for each backend OData source and add the resultant classes to the project. Note, one of the generation options is --prefix which can be helpful if the two OData sources have conflicting names.

Hope that helps,

Dan van Leeuwen