I need to synchronise my database with an external API.
My Entity is something that :
Product id ean name price description
And my API is that :
API : /v1/products data: ean: 123456 title: [ 'fr' => Mon titre 'en' => MyTitle ] price_without_tax: description_short: description_long:
What’s the best practice ? In the next month, I will have a second API connector with another structural return… I think that Serializer is perfect solution in this case, with Deserialize function… But I need expert advise for property name (string) / title (array) and key which not similar…
Thanks for reply !
Source: Symfony Questions
Was this helpful?
0 / 0