mtarld / api-platform-ms-bundle

A set of tools to use Api Platform in a microservice context
MIT License
66 stars 8 forks source link

Replace the serialization of the body with json httpclient option #46

Closed ismail1432 closed 3 years ago

ismail1432 commented 3 years ago

In GenericHttpClient, The body is serialized with the format defined in the microservice configuration.

I suggest to remove this and let the json option of httpclient transform the body.

If we do this we can remove the serialiazer dependence

Wdyt?

mtarld commented 3 years ago

The serialization format could be anything depending on the configuration. It could be JSON, JSON-LD, or even CSV. I'm afraid that we can't delegate deserialization to the ResponseInterface::json method here.