roemer
343
4
General

Guidelines for calling external API's

Posted 2 years ago by roemer

Hi Ladies and Gents,

I have a question about coding guidelines. The application I'm building has an integration with a XML API which get's triggered every day at midnight. At that time, all new data from that system is imported into the application.

I was wondering, where should I put the code that calls the API and processes the data? I assume it shouldn't just be in app/Console/Kernel.php or in a Controller. Should it be a service provider or maybe a repository? I'm a little confused here. Can anyone give me advice?

Thanks in advance!

Please sign in or create an account to participate in this conversation.