Skip to Content

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20 at 07:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded