Creating an API between database and iOS, Android or web app

Hi all,
I’m trying to create a common database and API for both an iOS and web app. The API will be between the database and these client apps.
I know how to create the above for a web app. But how do I do the same for an iOS app?
In a couple of CWC tutorials the iOS app points directly at the Firestore db. But that’s not the same as placing an API between the db and the client apps.
So my questions are:

  1. Do you think my architecture approach is the right one?
  2. How do I go about creating such an API?
    Thanks for your help. I’m new to this. :smile:

Hi Rodney,

I would have thought that if you used, say, a firebase database you would be able to interface that with an iOS App, an Android App and a web App. In either case you would be using the same API key from Firebase and implement the relevant SDK for each App platform and the relevant CRUD code for each App platform.

If you are taking about using an entirely different database which requires you to build the API to suit all device Operating Systems then I have no idea where you would start.

I just thought that in this situation, using an existing well established database vendor would provide the logical solution.