At work, we have a Web application, which makes queries to databases, and I’m asked to determine if using Web APIs could be an added value.
Personally, I’m not convinced it is.
I know Web APIs are tailored to let different systems speak a “common language”, but having one to just access databases seems overkill to me. Yes, I can edit, update and publish the API independently from the client application, but that seems to be the only good factor to me. The Web API would be stored in an on-premise server, so Cloud’s typical scalability, elasticity, etc. aren’t things to consider.
I’m talking about HTTP RESTful APIs. We have an ASP.NET MVC Web application (so, server-rendered) querying databases. Currently, the code to call the databases in embedded in the source code of the ASP.NET application.
Can I have your opinion?