you can use Vapor backend for API. Here is an example you can follow
https://github.com/iliasaz/vapor-oracle
In addition to that you have to install several libraries, follow this link for guidance
https://stackoverflow.com/questions/42960601/connecting-to-oracle-database-using-server-side-swift
Now generate API and use it in your app