Need to deserialize my entities but they are on a dedicated API project

I’m currently working on 2 projects:
– #1 : The website, templates, etc. (on symfony)
– #2 : On a separate project, my API (on Symfony with API Platform)

I make requests from the project #1 to that project #2 and get a json response, up to now it’s just a normal behavior.

But here is the problem, how can I deserialize my response to an object on project #1 if I can’t access my Entity file?

I searched many solution on Google but all of those solutions need a direct access to the entity file, but me I can’t because they are on my API project.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *