There is an idea in my mind about a "Negotiable Response" that would allow setti...
Alerta! Alerta! @heiglandreas@phpc.social
There is an idea in my mind about a "Negotiable Response" that would allow setting a DTO in a response (i.e. within a controller) and a middleware would then take care of rendering the correct response from that depending on the rrequests accept header.
Would that be something that others would use as well? Besides for APIs?
I know APIPlatform has something like that, but it seems to be rather specific to APIs....
🤔