Relative Content

Tag Archive for phpsymfonyapi-platform.com

API building with Symfony 7.1

I am using the API platform as a basis for my API, which has been great, and it exposes the entities I created with all the different method types. However, when I try to create the custom pages with functions via the API url, it doesn’t seem to work.

Issues Handling Plain Identifiers in API Platform/Symfony

I am struggling to use plain identifiers in API Platform. I have related entities and have followed the official documentation of API Platform, creating a Denormalizer, but I always get the error Unable to generate an IRI for the item of type "App\Entity\Address

Universal controller for soft delete in ApiPlatform

I use ApiPlatform and want to change the delete request behavior for my entities. In every entity, I have a status property – when a delete request is called, it should set status to 0 instead of removing the record from the database.

Conditionally required attribute in API Platform

I’m new to API Platform and I want to ask if there’s a way to conditionally require an attribute of an entity. For example, I have an entity User with two attributes, HasCar and CarModel. CarModel will only be required if HasCar = true