1015 search results for API Platform

... priority, but the service is explicitly declared without one in `/vendor/api-platform/core/src/Symfony/Bundle/Resources/config/ramsey_uuid.xml` so I'm guessing that's not relevant.
Nathanael
Nathanael
Read Full Comment
... super complex. It's possible that the solution might need to (or not need to!) use the "normalizer aware" strategy: https://symfonycasts.com/screencast/api-platform-security/normalizer-aware... or maybe that will make no ...
weaverryan
weaverryan
Read Full Comment
... //symfonycasts.com/screencast/api-platform-extending/validator-logic#codeblock-f8b1e9b4ae I think the key difference is that, if we added this constraint above our input class, the actual `CheeseListing` entity will, I ...
weaverryan
weaverryan
Read Full Comment
... direction of making them a bit "fatter". Furthermore, all original classes (two Transformers and a Denormalizer) are still kept for Api Platform to do it's magic – only transformation logic is moved. On one hand, them ...
... action". It is more of a "given this user, this is an invalid value for this field". We do something like that here: https://symfonycasts.com/screencast/api-platform-security/validator-logic. The tricky part is getting ...
weaverryan
weaverryan
Read Full Comment
... about API Platform, async email and symfony stuff so my code inspired by you and I added the reset : $this->entrypointLookup->reset(); in the constructor of my Mailer service. (May be it need to be another place?) If I send ...
Christophe R.
Christophe R.
Read Full Comment
... /api-platform-extending/entity-filter-logic In that example, in getDescription(), we name the filter "search". But that does not need to correspond to any property name on our class. So we could also call it "isMe" or ...
weaverryan
weaverryan
Read Full Comment
... value, it works as expected. Is this the expected behaviour? It seems weird to me that a field does not appear in a response if it is NULL. Or maybe I'm missing something. I'm using Symfony 5.3 and API Platform 2.6.5 ...
André P.
André P.
Read Full Comment
... to the Document. I am also using Api-Platform for the project. One of my approach was to use DTOs and set dynamic properties there. Then collect them all and set it as a HASHed property name `data` in the document. I am ...
EinzigTech
EinzigTech
Read Full Comment
... already by the time we recorded this (so I knew about it), but it wasn't released stable yet. I mention this here - https://symfonycasts.com/screencast/api-platform-extending/uuid#installing-ramsey-uuid - but overall, it ...
weaverryan
weaverryan
Read Full Comment
... API Platform, so I'd like to have a more granulated control for a serialized property name for different serialization groups. Is there a case to expect this? Could you please confirm that the example in the gist doesn't ...
Volodymyr T.
Volodymyr T.
Read Full Comment
... ignored ->setMaxResults( 8 ); // Also ignored ` How should it be? ---------- I'm still confused with API Platform and its Collection logic. Like I said, I have a lot of Activities and many occasions to ...
Jean-tilapin
Jean-tilapin
Read Full Comment
... do anything on the API Platform. I want to accomplish a equi join between two entities so thge correct record is retrieved from the Database. In the video lessons one side of the argument passed is always a literal. EDIT ...
sridharpandu
sridharpandu
Read Full Comment
Running into an issue with Symfony 5.2.3, api-platform 2.6 and SYMFONY_PHPUNIT_VERSION = 8.5" I followed this tutorial, but it seems that Symfony ignore the services_test.yaml. The service “test.api_platform.client ...
Manuel G.
Manuel G.
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 ...
... sure, but I think it should still work - the resource metadata factory we create - https://symfonycasts.com/screencast/api-platform-security/resource-metadata-factory#codeblock-b610d31864 - is checking for the existence ...
weaverryan
weaverryan
Read Full Comment
... () == user", ``` In API Platform 2.5 and higher, as you know, we now have `security` and `security_post_denormalize`. Basically, `access_control` === `security_post_denormalize`. What I mean is, both of these run *after ...
weaverryan
weaverryan
Read Full Comment
... will call the voter. That document is on GitHub here - https://github.com/api-platform/docs/blob/2.5/core/security.md - if you do find time to make a pull request, definitely let me know and I can review and +1 it. Also ...
weaverryan
weaverryan
Read Full Comment
... - but if it's still not clear, take a screenshot and send it over :). I would be looking to see if one of the classes in the stack is `ResourceAccessChecker` from API Platform (which would point to this coming from some ...
weaverryan
weaverryan
Read Full Comment
... bundle (why have the extra subdirectory)? However, some pure libraries will come with a Symfony bundle embedded inside of them, and they *will* follow some convention like this. API Platform is one example: it is just a PHP ...
weaverryan
weaverryan
Read Full Comment