1000 search results

I had always problems to start chapter 2 of api platform tutorial because of issues during instalation of this project. Now i using a 8.1 version of php on Ubuntu and after read all comments i think the simplest solution is: 1) Choose the…
kkedzierski
kkedzierski
Read Full Comment
Hey Tac-Tacelosky ! API Platform 3 should come out sometime this summer - we're waiting on that before we give the tutorials a facelift for newer php and symfony version. I know, it's not ideal until then :). About the fixtures, there are no fixtures…
weaverryan
weaverryan
Read Full Comment
This is just FYI as I am using API Platform 2.6.8. The desciption for the filter in the documentation was not working for me. Instead of: ``` return [ 'from' => [ 'property' => null, 'type' => 'string', 'required' => false, 'openapi' => [ 'description' => 'From…
Could we see a comparison (or even a tutorial on) ApiPlatform's react admin? https://api-platform.com/docs/admin/ I imagine it would be performant and may have auto config using it's annotations. A comparison with LowCode apps that are used to build…
Hey is there any information somewhere on how to work with API Platform and API Tokens? Thanks :)
creativx007
creativx007
Read Full Comment
I just noticed while debugging that at least in Api Platform 2.6, the `$this->pagination->getPagination()` call in `DailyStatsProvider` line 28 actually needs a third argument – `$context`. Without it, `$page` is always 1.
Hi Ryan, How we deal with many to many relations and Api Platform? Do you information about this case? Thank you! Raúl.
Hey The team, For someone who want to use SF5 with API platform 2.6 and PHP 8, I succeed to write this and it is working perfectly fine : ``` #[ApiResource( collectionOperations: ['get', 'post'], itemOperations: ['get', 'put'], shortName: 'Cheeses', attributes: [ 'pagination_items_per_page' => 2…
I manage to make it work using : composer require api-platform/api-pack "1.2.0" Thanks to finish folder in the course code. Dependencies update is a very big problem in tutorials! (already talked about that with Ryan)
atournayre
atournayre
Read Full Comment
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 401 Unauthorized response…
Gabrielius
Gabrielius
Read Full Comment
Awesome ! Regarding API Platform Part 4, do you plan to release it in 2021?
Hello ! I'm using API Platform 2.6, so I can use the DataTransformerInitializerInterface interface. So I tried something like this : ``` public function initialize(string $inputClass, array $context = []) { $dto = new CheeseListingInput(); if(isset($context[AbstractItemNormalizer::OBJECT_TO_POPULATE])) { /** @var CheeseListing $cheeseListing */ $cheeseListing =…
Hello, in API Platform 2.5, so, which is the best solution between : ``` 'put' => [ 'security_post_denormalize' => "is_granted('ROLE_USER') and previous_object.getOwner() == user", 'security_post_denormalize_message' => 'Only the creator can edit a cheese listing' ], ``` and ``` 'put' =>…
there PHP: Version 8 Symfony: Version 5.2 with API platform I am trying to store Doctrine entity object to cache. When next time I retrieve same object from cache, doctrine consider that object as new object and try to persist it. Can u help…
The output doesn't show any route. `➜ api-platform git:(master) ✗ bin/console debug:router ------ -------- -------- ------ ------ Name Method Scheme Host Path ------ -------- -------- ------ ------ ➜ api-platform git:(master) ✗` "api-platform" is also the folder's name of my project. But I cannot imagine that this…
Dennis B.
Dennis B.
Read Full Comment
Hi, I'm using api-platform configuration with yaml and not with annotations, also the serializer, so, I'm struggling to get a getProperty() to work with groups, like your example of getCreatedAtAgo(), but, in my case, I can't or I shouldn't put…
Nestor B.
Nestor B.
Read Full Comment
Hi! Why is my api platform documentation empty? When i go to the POST option, the body documentation is empty. After i click 'try it out' i only see an empty JSON {}. I had to write the JSON by hand following the example in the…
Actually i already try based on this example. BTW the API Platform doc example is slightly different from the SFCast course. One is extending AbstractContextAwareFilter and the other one AbstractFilter, does it matter ? I forgot to mention i'm using GraphQL
Hi Abdelkarim, If you go to this URL: https://api-platform.com/docs/core/filters/#doctrine-orm-and-mongodb-odm-filters and click on the YAML tab for its examples, you will find ways to do this using yaml. Hope it helps!
Hey Chloé Just to let you know that the ApiPlatform episode 3 course it's been actively released now https://symfonycasts.com/screencast/api-platform-extending Cheers!
MolloKhan
MolloKhan
Read Full Comment