1025 search results for API Platform

Hi Alex T.! I think I understand! I believe what you are asking about is covered in this section - https://symfonycasts.com/screencast/api-platform-security/validator-logic - and the answer is "do this with a validator ...
weaverryan
weaverryan
Read Full Comment
... where it shoud be. Of course, I changed all else from DailyStats to DailyStat. API-Platform by default seem to assume that ApiResource name are singular and automatically pluralizes it to get the name of the collection query. As it got queries with the same name, it dropped one of them. Or so I believe.
Bernard A.
Bernard A.
Read Full Comment
Hey Benoit L.! Sorry for the slow reply! > [Web Server ] [26-Mar-2022 19:32:57 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\api-platform\start/vendor/autoload.php' Hmm. This looks like you ...
weaverryan
weaverryan
Read Full Comment
... https://symfonycasts.com/screencast/api-platform/relations-iri#comment-5391015233 Anyways, I know those links aren't terribly specific, but let me know if they help :). Cheers!
weaverryan
weaverryan
Read Full Comment
... provider not return array of entities. What is the best solution for this ? PS. I'm not using custom controller with invoke method because I will lose some features of api platform. In my data provider I support filters and so on.
(base) shubham@Shubhams-MacBook-Air API-Platform % ./bin/console doctrine:database:create In AbstractMySQLDriver.php line 115 ...
CloudCreators
CloudCreators
Read Full Comment
Hey @Arthur! Excellent! I would say that the best practice is to use an extension when you're able to because. This is a "smaller" hook: you're letting API Platform do its custom logic, and you simply modify the query ...
weaverryan
weaverryan
Read Full Comment
... Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /home/atournayre/PhpstormProjects/code-api-platform/start/vendor/symfony/proxy-manager-bridge ...
atournayre
atournayre
Read Full Comment
... or implement the remaining methods (Symfony\Component\Security\Core\User\UserInterface::getUsername) in /mnt/c/laragon/www/api-platform/src/Entity/User.php on line 13` This is because the method getUsername was ...
André P.
André P.
Read Full Comment
... //gist.github.com/bastien70/5d910368500f2ad56a8e4e81f57312a7 Do you know where the problem can come from? When in doubt, I cleared the cache, but nothing changes I'm using Symfony 5.2.9 and API Platform 2.5
... only read them in GROUP_B. In the Future there might be the possibility to share data between some but not all groups. My App seemd so easy to me but i have the feeling i need everything API platform has to offer 😂 Also ...
... situation, the "number" and "leg" part are lowercase. That could be causing API Platform to think that these field should literally be sent as "clientvo_number" in the JSON instead of "clientvonumber". Let me know if this helps :). Cheers!
weaverryan
weaverryan
Read Full Comment
... Hey Miky! It's an excellent question actually :). API Platform itself runs *fine* on PHP 8. But at the time we created *this* tutorial, PHP 8 wasn't released yet. And so, some of the dependencies in our composer.lock ...
weaverryan
weaverryan
Read Full Comment
Hi, first of all, thanks a lot for your invaluable screencasts. I read the other comments and i'am facing the same issue with cookie problems for my frontend. To explain: With this setup : Docker + Traefik + Api ...
laferte_tech
laferte_tech
Read Full Comment
... POST collection operation, we explicitly set its security - you can see it in this code block - https://symfonycasts.com/screencast/api-platform-security/previous-object#codeblock-a4c57775cb - does your operation have this? Let me know - it's the first place I would look :). Cheers!
weaverryan
weaverryan
Read Full Comment
... through the @ApiProperty annotation. Something like embedded=false that I can retrieve in the context later. I saw that it has openapiContext & jsonldContext attributes but I didn't find information on how api-platform use ...
... - we'll talk about them later in the tutorial). Here is one of the bugs we discovered - and work around later in the tutorial - https://github.com/api-platform/core/pull/3696 But we work around this by adding ...
weaverryan
weaverryan
Read Full Comment
... ProductNormalizer in your code, which is why you weren't seeing the field! On an API Platform-level, both using Groups or a custom normalizer are valid way to expose a field (the Groups way is the more official way). I used a custom normalizer so that I could use a service to help generate the "image" value. Cheers!
weaverryan
weaverryan
Read Full Comment
... the place that looks for the `@id` is this: https://github.com/api-platform/core/blob/ce06420868afb289676478450a3e76569dc20a02/src/JsonLd/Serializer/ItemNormalizer.php#L109-L118 The key during the deserialization ...
weaverryan
weaverryan
Read Full Comment
... wrong. Have you tried this before? You may need to tweak some "eager loading" settings - you can see that here: https://github.com/api-platform/core/issues/1910 Cheers! ...
weaverryan
weaverryan
Read Full Comment