1000 search results

Hey there, That's a good question, and after looking at the ApiPlatform documentation, I didn't find a way to configure filter names. I think the only way to do that is by creating a custom filter, unless I missed something Cheers!
MolloKhan
MolloKhan
Read Full Comment
EDIT : After some digging, I realize I "exit" the `ApiPlatform\Core\JsonLd\Serializer\ObjectNormalizer::normalize` method on line 86 on : ` $data = $this->decorated->normalize($object, $format, $context); if (!\is_array($data) || !$data) { return $data; } [...] return $metadata + $data `. The metadata that you use in…
Lucien D.
Lucien D.
Read Full Comment
…a tutorial on) ApiPlatform's react admin? I've wanted to see about getting a tutorial about this for awhile, but I haven't had time yet. It's still on the list, but will be awhile. Without knowing enough about ApiPlatform's react admin…
weaverryan
weaverryan
Read Full Comment
Hey André P. You're right, defining the ApiPlatform identifier is required when you're not working on an Entity, in other words, when working with a DTO Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey sadikoff , A symfony5 tutorial for implementing oauth2 with apiplatform
Hello, In some way, can we say that DataProvider/DataPersiter are to APIPlatform as Doctrine Entity Listener are to Doctrine?
Ohh, that's interesting. Perhaps if you upgrade ApiPlatform the error goes away but I might be wrong. Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey Mostafa Shahverdy Sorry for the late reply and for the confusion. ApiPlatform comes with different implementations for working with GraphQL as you already discovered. We'll add a note about it to the tutorial. Thanks for sharing it :) Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hi, I don't understand why I have this error ` Symfony\Component\Config\Exception\LoaderLoadException: Declaration of App\ApiPlatform\Test\Constraint\ArraySubset::evaluate($other, string $description = '', bool $returnResult = false) should be compatible with PHPUnit\Framework\Constraint\Constraint::evaluate($other, $description = '', $returnResult =…
Hey Daniel, Awesome news for you! We've started working on ApiPlatform course! Well, it's on the planning stage yet, but I think it will be available in a month or two. And yeah, it's a *top* secret! So, shhhhhhh, don't tell…
Hey guys! I am expecting from you a tutorial about apiplatform+reactjs and you will became The God of PHP!
api-platform.com/docs/core/upgrade-guide/ if you're on an older version and want to upgrade to the latest. Though our Api Platform 3.x tutorials are still valid for most of the concepts, so you definitely can follow them to learn Api
It might be a litte late for the topic starter, but for everybody else trying to do the same – you might want to look into declaring parameters on resources: https://api-platform.com/docs/core/filters/#declaring-parameters
…Thanks for pointing that out! We did notice this a while back and added a note about it to a [previous chapter](https://symfonycasts.com/screencast/api-platform-security/browser#seeding-the-database). > since the error seems rather cryptic Darn, we've been trying…
…description": "The total number of joined relations has exceeded the specified maximum. Raise the limit if necessary with the \"api_platform.eager_loading.max_joins\" configuration key (https://api-platform.com/docs/core/performance/#eager-loading), or limit the maximum serialization depth using the \"enable…
Hey |mention:81999|! Glacial reply again, but, does this help? https://symfonycasts.com/screencast/api-platform-security/api-property#comment-33098
weaverryan
weaverryan
Read Full Comment
…will loose session login and you will need to pass token in each request. There is a little tip on this page https://symfonycasts.com/screencast/api-platform-security/login-response#thanks-session about stateless ApiPlatform default configuration change. Maybe it will be helpful Cheers…
…git grep "graphql" composer.lock: "api-platform/graphql": "For GraphQl mercure subscriptions.", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "graphql", composer.lock: "api-platform/graphql": "^4.1", composer.lock: …
skocdopolet
skocdopolet
Read Full Comment
Ok, so your entire Symfony app is broken due to that strange error. Run the composer command without using Symfony `composer why api-platform/graphql`. Also, try re-installing your vendor directory, I'm not sure what's causing that error so I'd like…
MolloKhan
MolloKhan
Read Full Comment
…assets? `symfony console asset-map:compile` Did you also install `api-platform/graphql`? If that's the case but you don't need it try removing it or start by disabling it ```yaml # api/config/packages/api_platform.yaml api_platform: graphql: graphiql: enabled: false ```
MolloKhan
MolloKhan
Read Full Comment