Category: api

How to set normalization groups based on user’s role and request method

I am creating a sandbox app as Api-platform practice and I have the following problem to address: Let’s consider following REST endpoint for user entity: DISCLAIMER in the code examples there are a little more attributes but the whole concept…

How to configure Varnish in an API-platform project? [Response size limit issue]

Sometimes in my preproduction and production environment, the varnish container send me this error: Error (null) Backend fetch failed Backend fetch failed Guru Meditation: XID: (null) This is due to the size of the body response. So I did implement…

Is there any good example how to use Symfony API Platform? [closed]

We’re trying to build API with API Platform, but we found constant problems with finding good example/practices on using the platform. Our constant requirements were/are: Separation of entities and platform mappings (we already have separate YAML files, but there is…