Slide 33
Slide 33 text
IT IS UP TO US TO PROVIDE DATA
it's up to the developer to feed API Platform with an hydrated instance of this API resource
object by implementing the DataProviderInterface. Basically, the data provider will query the
persistence system (RDBMS, document or graph DB, external API...), and must hydrate and
return the POPO that has been designed as mentioned above.
When updating a state (POST, PUT, PATCH, DELETE HTTP methods), it's up to the
developer to properly persist the data provided by API Platform's resource object hydrated by
the serializer. To do so, there is another interface to implement: DataPersisterInterface.
https://api-platform.com/docs/core/design