1022 search results for API Platform

Custom Item Data Provider

... >setIsMe($this->security->getUser() === $data): Try the test now: We got it! What we just did is a really natural way to use entities in API Platform... but also have the flexibility to add custom fields that require a ...

6:57
Serializing Messages as JSON

... this object's one property into JSON. We're not going to go too deep into Symfony's serializer component, but if you want to know more, we go much deeper in our API Platform Tutorial. Anyways, this simple JSON structure is ...

6:41
... allowed to make requests to YourJavaScriptBackend.com"). This is determined via CORS headers (see NelmioCorsBundle, which comes pre-installed with API Platform). Your API backend will need to allow your JavaScript frontend to ...
weaverryan
weaverryan
Read Full Comment
... platform events for example? Speaking of api platform, I could also set these properties in a data persister. I hope you get my point. I don't see how one would be better than the other and I often struggle with these kinds ...
Tobias I.
Tobias I.
Read Full Comment
... the `ConstraintViolationList` into JSON. API Platform is a great platform that has a lot of this built-in. But ultimately, this is what it's doing behind the scenes :). > Yup, I am primarily talking from a standpoint ...
weaverryan
weaverryan
Read Full Comment
Hey victor ! Cool question :). We've just started releasing our security tutorial - https://symfonycasts.com/screencast/api-platform-security - and this is *exactly* the kind of stuff I hope to clear up there. But ...
weaverryan
weaverryan
Read Full Comment
... functionality is realy dynamic or just generated at compilation time when no user is logged in. In https://github.com/api-platform/core/issues/2719#issuecomment-493445142) the discussion is about completely hide api ...
Jascha Lukas Gugat
Jascha Lukas Gugat
Read Full Comment
... guessing you don't want to do that just to fix this small issue ;). The problem may be that the logic to "use an IRI vs embedded object" lives (I believe) in the AbstractItemNormalizer - https://github.com/api-platform ...
weaverryan
weaverryan
Read Full Comment
... zendframework/zend-code (3.3.1) - Removing zendframework/zend-eventmanager (3.2.1) - Upgrading api-platform/api-pack (v1.2.0 => v1.3.0) - Upgrading api-platform/core (v2.4.5 => v2.5.7) - Upgrading composer ...
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 ...
... value to the repository method so that it can filter things. It's not a super cool solution that hooks into API Platform in some awesome way - but I think this should work just fine. Cheers!
weaverryan
weaverryan
Read Full Comment
... on our site (after API Platform), but I absolutely understand that this type of tutorial won't appeal to everyone. We try to keep a "rotation" of topics to keep things interesting for everyone - e.g. instead of creating 3 ...
weaverryan
weaverryan
Read Full Comment
... up with a CQRS implementation of some request lifecycles that get back a response with the user using mercure bundle. We also used API-Platform to fetch collections of the result of the command and events, with a ...
rAfitiiixxx
rAfitiiixxx
Read Full Comment
Hey Andrei V.! Sorry again for my slow reply! I think you're reading too much into the recommendations from API Platform. Specifically, the MediaObject idea is simply *one* pattern for handling file uploads that (I ...
weaverryan
weaverryan
Read Full Comment
... ": "", "file": "/home/mono/Projects/Goodness/vendor/api-platform/core/src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php", "line": 137, "args": [] }, i try to find the solution from api platform. but ...
... ": "*", "ext-iconv": "*", "actived/microsoft-teams-notifier": "^1.2", "api-platform/core": "^2.6", "aws/aws-sdk-php": "^3.232", "doctrine/annotations": "^1.13", "doctrine/doctrine-bundle ...
TristanoMilano
TristanoMilano
Read Full Comment
... avoid calling ourselves recursively. Yikes! I hope that API Platform (or the serializer) will add a cleaner hook to all of this. > For example, I have yet no idea how to use API_Platform from the controller, or even if ...
weaverryan
weaverryan
Read Full Comment
... ALL Adverts, not just their *own* adverts. That could be solved with an "exact" SearchFilter - https://symfonycasts.com/screencast/api-platform/relation-filtering#codeblock-dd301f85a4 - the frontend would add something ...
weaverryan
weaverryan
Read Full Comment
Microservices Gone Wrong

... systems. And a team that I had the opportunity to lead a number of years ago, we wound up building a platform. And I'm gonna tell you a little about the background. But we made a bunch of mistakes and rather than let those ...

39:20
DTO Security

... fascinating! When we make a patch() request to a treasure, API Platform starts by using our data provider to find the DragonTreasure entity. Then we map that to a DragonTreasureApi object. Next, the new value is ...

9:39