1025 search results for API Platform

... /api_platform/vendor/api-platform/core/src/Bridge/Symfony/Validator/Validator.php", "line": 67, "args": [] }, { "namespace": "ApiPlatform\\Core\\Bridge\\Symfony\\Validator", "short_class ...
Andrew M.
Andrew M.
Read Full Comment
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 ...

11:28
... /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 ...
weaverryan
weaverryan
Read Full Comment
... . 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.
Joris-Mak
Joris-Mak
Read Full Comment
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 ...
TristanoMilano
TristanoMilano
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
donwilson
donwilson
Read Full Comment
... 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