The way I see it, in Api Platform 3 you are supposed to use StateProvider, implementing ProviderInterface. See [https://api-platform.com/docs/core/state-providers/](https://api-platform.com/docs/core/state-providers/) for more. As I am trying to learn things myself, this might not be correct. ...
Hi, and want ask from another side. If we are using API Platform (currently it this time v2.6+) should we use somehow the pagination from it without that we will call api request ? Mean by use statement in controller of some part of Api Platfrom ? ...
I think i found it.
It's the `vendor\api-platform\core\src\Bridge\Doctrine\Orm\SubresourceDataProvider.php`. If i change it back to what it was before the composer update it all works again.
It turns out that api-pack ...
... Hello,
I've installed the API Platform with the following command "composer require api".
It has been intalled and I have acces to "/api" but I don't see any CSS as saw in the video tutorial.
Can someone let me know how to use the default CSS like him? Or do I need to configure it?
Thank in advance!
Hi
Thank you for this great tutorial.
Is it possible to implement the json_login authentication with Mercure knowing that API Platform doc https://api-platform.com/docs/core/mercure/#installing-mercure-support, they are using JWT. My main goal is to secure the API and notify users when a new article is created. Thanks ...
@weaverryan @shadowcplays
Why this does not cover the FORMS ? There is big hole between API Platform and Symfony Forms extension....
I saw many posts on the internet when nobody has normal process how to ...
... SecurityController - it won't be part of your API... but... boom! It works
B) Create a custom operation on User
C) Use the Messenger integration with API Platform - by chance, their example is actually a password reset: https ...
*the result would be a 200 status code, except that the roles property would "skip" being set.*
I can confirm that API platform behaves exactly like that for my `PATCH`, with API Platform `v3.2.11`
I have ...
Could it be possible there might be a bug in the latest version of API Platform ?
Since my last `composer update` on an already existing project (API Platform v3.2.3 and Symfony 6.3.7), I have the same thing happen ...
Hey Drutpro!
Thank you for your feedback! Yes, we definitely want to release more courses about API Platform, this is a great tool with huge capabilities. Unfortunately, I'm not sure when it might be released, for ...
I am going through this tutorial with the latest version of Symfony (6.1) and API Platform (2.6). When attempting to update the owner object via an embedded object within my cheese listing, I did not receive the ...
... previously, but I can't remember why. 422 actually makes more sense: passing the wrong owner fails due to the IsValidOwner constraint, so that's a validation error. The status code changed at some point in API Platform ...
... /average_weather are quite similar.
Anyways, related screencasts:
A) Custom data provider: https://symfonycasts.com/screencast/api-platform-extending/data-provider and the next few chapters
B) Totally custom ...
I was thinking, in cases like this (when persisting data), is there a difference between using an Entity Listener or a Data Persister?
To my understanding, a Data Persister is only executed when using API Platform and ...
Hi, just started using Api platform with one of my projects where I have two user providers (two different entities: Admin and User). And I struggle to get a list of users when I am logged in as Admin :(. I am getting ...
Hey Alex T.!
Excellent question! I remember (WAY before API Platform, just in programming in general) this question driving me crazy :p.
The answer is this: (unless I've absolutely missed some clever way of doing it f ...
... suspiciously similar: https://symfonycasts.com/screencast/api-platform/serialization-groups#comment-5337428523
My gut is that there has been a change in API Platform that is causing this. And if so, I believe it is a bug. If you can open an issue and link me to it, I can help push that along.
Cheers!
... based on your question, I'm guessing that the normal BooleanFilter doesn't work for non-mapped properties? https://symfonycasts.com/screencast/api-platform/filters#filtering-by-published-unpublished
If that does not work ...
... API Platform in a newer version (than we use in the tutorial). I'd recommend opening an issue in API Platform if you can with the details. I can't (at the moment) test this myself... because I'm on SUCH slow internet ...
Hey Wolfone!
Ah, it all makes sense now - and good job fixing it! Another option would have been to move the API Platform route import to the bottom of the routes file. That would involve moving it out of the ...
1026
API Platform
Filter Results