I use Api Platform & Symfony (5.4) + php 7.2.5 I created an Entity by myself, I just added one file in /src/Entity and it’s not working. I refresh, I cleared cache, I adde @ApiResource… But the Entity is not visible in the doc page in API Platform. Have you an idea where the error is ? Thanks ! Here
Tag: api-platform.com
How to make a single endpoint operation public in API Platform?
In API Platform, I have all the endpoints secured with JWT but I would like to have the POST User public so users can register themselves. How can I do this at entity level? if I implement this in security.yaml as usual in Symfony it works I just would like to know if I can do it at entity level
symfony + api platform – creating alias to a route
We have a rather standard symfony + api-platform project. A while ago, when a route was created it had a typo in it. I noticed that and want to fix it for the future. The problem is that some of our clients may have implemented it already like that. I want it to still work for a while, without being
API Plateform custom get operation
I am trying to build an ecommerce site using API plateform. Since I am using JWT authentication with LexikJWTAuthenticationBundle I am having a hard time to get the user with the token. I would like to access the cart of the user. I managed to add to the cart through a custom post operation. I am trying to use the
Api-platform PUT operation with denormalization_context groups on an itemOperations not working
I have 2 entities: I wanted to retrieve only words for itemOperation and not for collectionOperations so i added a group GET “item_words.read” and for PUT denormalization_context. It is perfectly working for GET operation, for some reason the PUT operation is not giving me the “words” subresource. GET : PUT : Here is my code : Item and Word Answer
How to implement custom item get endpoint with filtering in api platform?
I am working on a symfony/api platform app that allows users to track sports matches. My entities look like this (shortened for brevity): User.php MatchPlayer.php Match.php So in my model, a user can relate to many matches and a match can relate to many users via the glue table that also saves what position a user played. Now I want
Symfony 5 API populate related object entities
I am trying to create a simple web app using Symfony 5. I am using the API. Currently when calling some endpoint it only displays the IRI link to the related link: I need instead to display the …
symfony Declaration of AppSwaggerSwaggerDecorator::normalize must be compatible
I use api platform to create api rest but in configuration package i found this error. enter image description here I copie and paste this code in documentation : https://api-platform.com/docs/core/…
api platform – Unable to generate an IRI for the item
I’m starting with API Platform and I’m using the example entity “Foo”: I succesfully see the new Entity in dashboard (See image): API Platform Dhasboard And I had the following error when I try to get all Foo collection: I tried different formats and check the the routes too: It’s possible what I need some special library in my server?