Mr Hound
Mr Hound

Hello, everyone,

I need your opinions for a plugin development.

I will briefly explain the situation: on the one hand a model and on the other an API to provide the data.
No problem to make all this work (sync, update models, queue jobs ... ), but during a discussion I learned that the data provider, therefore the API, might change soon!

My question is therefore the following, which organization/architecture would you recommend, to have access to different APIs as sources (managed in plugin settings).

The idea is to use third-party services or APIs to pull some data, transform that data into the desired response and then deliver them to the model. The models should never be linked to the datastores (DataMapper) right !?
My concerns are more logic organization than coding solutions, I need to find a way to keep consistency.
¯\_(ツ)_/¯

Any help welcome.

1-1 of 1