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 ...
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 ...
... 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 ...
... 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 ...
... 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 ...
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 ...
... 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 ...
... 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 ...
... 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!
... 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 ...
... 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 ...
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 ...
... ": "",
"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 ...
... 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 ...
... 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 ...
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 ...
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 ...
1022
API Platform
Filter Results