I am working on a new project which contain 2 main parts:-
Scheduled service which reads files from SharePoint online and send them to external API.
The external API will process the received documents using Artificial Intelligent models >> extract data from the documents >> then Push the extracted data back to our system >> where our system will update SharePoint with the extracted data.
So currently I am defining the architecture and technologies that I am going to use, where I define the following at this stage: -
For point one, I am going to build a .net core console application >> hosted it inside windows server >> schedule it using windows tasks scheduler. This service will read the files from SharePoint using SharePoint API >> send them to the external API.
But I am not sure about point 2? How I am going to received the pushed data from the external API inside our system? Can I define an API end point inside my console application? Or for this I need to build something like ASP.NET Core MVC hosted in IIS which exposed some API endpoints to get the pushed data? Keeping in mind that the external API and our system will be installed inside the same windows server. OR I can build an ASP.NET Core MVC web application which will expose a controller class as an API end point + use its console application
program.cs
to be scheduled using windows tasks scheduler?
Thanks