1015 search results for API Platform

Hi Don! Yea... that *does* some complex. I don't have any direct experience with non-entity classes and relating them. However, I "think" that, on an API Platform level, all API Platform cares about is that class A ...
weaverryan
weaverryan
Read Full Comment
If you were creating this tutorial on custom resources for api-platform version 2.7 would you change anything significant? I'm asking since I'm currently trying to upgrade an (fully working) app from php7.4/symfony4.4 ...
Alexander-S
Alexander-S
Read Full Comment
... custom operation and customize its URL. I'll be honest: I don't have a lot of experience with custom controllers and API platform, it's the ultimate custom option. But, it's not a bad idea... you just start to be less ...
weaverryan
weaverryan
Read Full Comment
... out this video for some rationale about how the embedded resources are loaded - https://symfonycasts.com/screencast/api-platform-security/filtered-collection - I think it will help highlight what's going on. I believe ...
weaverryan
weaverryan
Read Full Comment
... *sometimes* look in an API (but not in API Platform). The docs around uploads in API Platform basically come down to the fact that uploads are a bit custom and, at least according to the docs right now, are best done with a ...
weaverryan
weaverryan
Read Full Comment
... /1", "username": "updated username" } } ``` I haven't yet found a good way to differentiate between creating and updating a nested entity without implementing various things myself. What is the correct way in API Platform to implement this?
UUID's

... the one from Ramsey\ - then call uuid4(), which is how you get a random UUID string: Run the tests again: Now they're happy! Next, the UUID is not part of our API at all yet. Let's tell API Platform to start using it as the identifier.

7:29
Setting up our Symfony App

... focus on in this tutorial. Though, if you are building an API, follow the first few tutorials in this series, then pop over to our API Platform tutorials. API Platform is a mind-blowingly fun & powerful system for making ...

4:34
DTO Entity State Processor

... isn't an entity, PersistProcessor does nothing. Finally, API Platform serializes the UserApi back into JSON... but without the id populated, it fails to generate the IRI. Watch! Over in UserApi, temporarily default $id to ...

7:39
Custom Filter getDescription properties

... look one way. But if your underlying data source is, for example, ElasticSearch - which is something API Platform has built-in support for - then a custom filter will look different. And if you have a completely custom API ...

7:09
... "Update is not allowed for this operation." at ../code-vue/start/vendor/api-platform/core/src/Serializer/ItemNormalizer.php line 56 ``` I don't understand why, Cart seems well configured in ApiPlatform.
atournayre
atournayre
Read Full Comment
... ), I believe that you should even be able to create tags in this request. This is probably the area of the tutorial to look at - https://symfonycasts.com/screencast/api-platform/collections-write. From Api Platform's ...
weaverryan
weaverryan
Read Full Comment
Hey |mention:85113|! Sorry for my very slow reply! I can see what you want to do and it makes sense. This may be related and help: https://github.com/api-platform/core/issues/5559#issuecomment-1518595331 - let me know if it does! Cheers! ...
weaverryan
weaverryan
Read Full Comment
... hm. I'm sorry I probably wasn't attentive... Looking deeper into the issue, I did some tests on API Platform demo, and it looked like it should work fine. Have you tried to make the request in a different way? For example, directly from Postman or curl? Cheers.
... https://symfonycasts.com/screencast/api-platform-extending#comment-31551 - if it's unclear let me know, but I think you'll understand the approach. Cheers!
weaverryan
weaverryan
Read Full Comment
... the submitted fields Here's a video where Ryan talks about this change https://symfonycasts.com/screencast/api-platform-security/new-put-behavior Cheers!
MolloKhan
MolloKhan
Read Full Comment
Same small issue here. I found this comment which sounds like the solution: https://github.com/api-platform/core/issues/5343#issuecomment-1400434403 I am not going to try this fix right now since this is just tutorial code so I am not sure if it works. ...
Lola-Slade
Lola-Slade
Read Full Comment
Hey @Guillaume! Sorry for the trouble and the late reply. I just had some time to look into this and I can confirm your bug. It looks like there's already an issue open - https://github.com/api-platform/core/issues ...
weaverryan
weaverryan
Read Full Comment
Sadly the Hydra Admin is actually not working in Symfony 7.0.1, i also tested out 6.4 but i had still no luck setting it up there :( Starting the moment an Entity has been added to the Api Platform (which works on the PHP site well) the Hydra Admin is crashing after loading. ...
Sebastian
Sebastian
Read Full Comment
Good morning. I am very interested in the integration of the Api platform with Elastic Search to implement it. Would you have a link, manual or video that explains it. Or are you going to take a course on that? Thank you. ...
Patricio-RM
Patricio-RM
Read Full Comment