I am developing an information system for the World Wide Web using ASP.NET Core 3.1 (MVC of course) and we are considering to port it to mobile Android and iOS devices in the future.
Currently, I am using the "normal" controller actions to perform DB operations and everything is going on well.
However, it seems to me that, when starting to develop the mobile apps, I will have to "re-write" the controller's actions and make them WEB API's (RESTful services for example).
As a WEB API newbie, Is my panorama correct? Should I consider to use WEB API's instead of integrating everything within my MVC project?
Respectfully,
Jorge Maldonado
Mobile solution does not mean you shall use Web API. It is actually a front end requirement that will mostly be handled by your HTML/CSS constructs in your pages.
Your decision should be based on project size and complexity as well whether there is a requirement to provide an API for third party integration, for small project your default choice is MVC for faster development, see link below for comparison:
https://www.gangboard.com/blog/mvc-vs-web-api
AT the end it all depends how you build it and what your future needs are. Web API is good for clear separation between front and back end but it is more work and costly to develop than MVC.
Saludos,
Miguel