... /api_platform/vendor/api-platform/core/src/Bridge/Symfony/Validator/Validator.php",
"line": 67,
"args": []
},
{
"namespace": "ApiPlatform\\Core\\Bridge\\Symfony\\Validator",
"short_class ...
OAuth with Facebook
... Facebook uses OAuth 2.0 for their API, so we're already dangerous.
And like a lot of sites, they even have a PHP library to help us work with
it. Installing it via Composer is easy. In fact, I already added it to our ...
... /container that we've been working with.This means that when your API Platform code runs, it uses the *same* EntityManager as your test. And so, when your API code, for example, queries for the User object, the EntityManager ...
... .
We use it to add custom endpoints from other bundles, or from the auth system, to add it to the OpenApi dump so it's a neat complete documentation, even filled with endpoints and resources that don't come from API platform.
Since I am upgrading an app from 2.6 to 3 right now, I was wondering about a behavior of the serializer that I ovserved.
In API-Platform >= 3, the default setting in the api_platform.yaml is ...
... collection automatically so that only some are shown, that's not done directly via `security`. Instead, in chapter 35 (will be released this week - but you can peek at it here https://symfonycasts.com/screencast/api ...
... earlier chapter where we even sent a mixture or objects and IRI strings: https://symfonycasts.com/screencast/api-platform/collections-create#sending-embedded-objects-and-iri-strings-at-the-same-time
B) We are using the ...
I have created a Custom Normalizer in my API Platform 3 (Symfony 6) application. The goal of this normalizer is to modify and add some data to the response before returning it to the user (GET collection request). This ...
Hi Gianluca-F!
Ah, apologies for the very slow answer!
Hmm. Yes, what you're expecting makes sense to me! However, it's done this way on purpose: API Platform FIRST loads your data, and THEN applies security. My ...
... the time on API Platform :P).
So, POST worked perfect and as expected.
Now for the GET part, *post-hydration* was the exact word that I was looking for that. I used a Doctrine Listener on PostLoad and worked!, of ...
... 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.
... 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 ...
... //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 ...
... 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 ...
... 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 ...
... /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 ...
... 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 ...
... 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 ...
... 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 ...
1025
API Platform
Filter Results