1026 search results for API Platform

Yes, this is so bad. I have to create a separate file that will contain a multitude of constants representing the configurations of my API Platform custom actions. It works, but... It would be interesting if in a future PHP update we could use functions. Thanks for your answers anyway! ...
Hi! Going through this tutorial right now, but with the new versions like php 8.1, api platform 2.6 and noticed that I have the same code like you do, but there is no description field, seems like normalization groups are not working properly... ...
... ) with api-platform and display them in my app.js with axios. I am very pleased with how useful symfony is for managing the backend.
Leonel D.
Leonel D.
Read Full Comment
I have to call `disableReboot()` on the client. Otherwise I get this error on my second request (the first request is the login request): "Cannot set session ID after the session has started." I use Symfony 4.4 and API Platform 2.6.8. Any idea why this is necessary for me an not for you? ...
Roland W.
Roland W.
Read Full Comment
Thanks anyways. I will report this to API-Platform. Unfortunately, there I will fall into the downside of this otherwise great tool. The responsiveness of the team to the issues posted on Github is simply glacial. I had issues linger there for 2 years or longer. So, I will post it, but with very low expectations. ...
Bernard A.
Bernard A.
Read Full Comment
... general - https://github.com/api-platform/core/pull/1633 - so I'm not sure what's going on here :/. Sorry I can't help more on this one!
weaverryan
weaverryan
Read Full Comment
Lol, guilty! I can't remember if I did that on purpose or not! I'll add your vote to our internal list... but probably not something we would do anytime too soon. However, we will need to, at some point in the not TOO distant future, refresh our API Platform tutorials. And when we do, that'd be the time to do it. Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey Will T.! Sorry for the slow reply! Hmm, try setting a "Content-Type" header to "application/json" in your Ajax call. I'm thinking that you're sending JSON, but because the Ajax request doesn't have a Content-Type, Api Platform thinks it's HTML, and then can't deserializer it. Let me know if that helps! Cheers! ...
weaverryan
weaverryan
Read Full Comment
Hey @solverat! I am... actually not sure :). Have you tried it yet and run into any issues? What exactly do you want to accomplish? The input/output DTO's are super interesting - but even the people at API Platform know they have some limitations. Cheers! ...
weaverryan
weaverryan
Read Full Comment
... the argument to the command, `make:entity` incorrectly skips the interactive "Mark this class as an API Platform resource?` question. I'll open an issue about that :). Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Evozon S. That's a good question, to be honest I'm not sure why it's still experimental, I'd say it's a good testing library that you can use in your projects but would be better if someone from the ApiPlatform project can confirm it. Perhaps you could ask this question here? https://github.com/api-platform/core Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... should be allowed. You can find more information here https://symfonycasts.com/screencast/api-platform-security/data-page-load#comment-5399857614 Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hello ! Do you recommend working with this "generator" on every project with API Platform? Do you ? Does it cover all the needs that we might have during development? I have heard of "SubResources", I never used them, but if I were to use it, would the generator work? Or is it still better to do everything by hand? Thank you ! ...
Hello, in API Platform 2.5, so, which is the best solution between : ``` 'put' => [ 'security_post_denormalize' => "is_granted('ROLE_USER') and previous_object.getOwner() == user ...
Hey Jean-tilapin That's a good question. Perhaps creating your own filters it's the way to go here so you can customize as much as needed your query logic. This Github issue may be related to your problem https://github.com/api-platform/core/issues/2690 Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Tristan P.! As I just mentioned on a different chapter, I think this issue is the same as the other one - https://symfonycasts.com/screencast/api-platform/user-resource#comment-5364446748 I am also not aware of any issue that's been opened yet - I would love if you could open it! Cheers! ...
weaverryan
weaverryan
Read Full Comment
there PHP: Version 8 Symfony: Version 5.2 with API platform I am trying to store Doctrine entity object to cache. When next time I retrieve same object from cache, doctrine consider that object as new object and try to persist it. Can u help me to solve this issue ? Thanks ...
Hey Vladyslav K.! Totally! We talk about it here - https://symfonycasts.com/screencast/api-platform/collections-create - in that video, we allow you to make a POST request to create a User... but where you can also ...
weaverryan
weaverryan
Read Full Comment
Hi there i have created API platform 2.6 app and I'm using tests that extends ApiTestCase, so i'm creating some entities before POST call, but that EntityManager in that POST call don't "see" those new entites thus error: Item not found ...
Daniel K.
Daniel K.
Read Full Comment
Thanks a lot for tutorials! Really want to get know about how to combine Vue with Symfony Forms (maybe without API Platform, but with plain action with formView from controller) in proper way, and maybe how to compile ...