Create a DataProvider - API Platform Discovery Training
When we explored the inner workings of API Platform, we saw that it uses an ORM Doctrine based DataProvider system to retrieve information from the database. Sometimes we're going to need to create an API that allows you to control information that is not coming from a database. Also, for these cases, it will be necessary to create a personalized DataProvider in order to control the recovery of data linked to our API.