Is it possible to retrieve resource by another field than ID in Api Platform?
I want to fetch data from api with path /api/slug/{slug}
. I tried with providers and controllers and always ended with error Invalid identifier value or configuration.
. ID must be in IRI so i cannot change identifier in ApiProperty
.
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.
Api Platform Voter subject is instance of the Voter class instead of the class it is supposed to be used for
first time using API Platform or at least its 4 years since I used it.
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.
Api Platform : returning an array of entity in a processor
I’m working with Api Platform on a processor that enable multi entity post and I want to return an array of entity. After I generate my entities, I store them in an array like this in my process()
:
API Platform 2.6 – Symfony 5.4 – ApiResource not showing entity in docs list (after upgrading from PHP 7.4 to 8.0)
I upgrade:
Symfony : 5.3 to 5.4
APIPlatform/core : 2.6 to 2.7
PHP: 7.4 to 8.0
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
Express inputFormats property for ApiResource in XML format for Api-Platform
Considering this Api-Platform ApiResource declaration in attribute form:
API Platform Validation doesn’t work when using StateProcessor
I’m curious if it is a potential issue for API platform?
As you know API platform has State Processors