Sorry, i made a mistake in installation command, the correct is `symfony composer require api-platform/api-pack`
…want to start using messenger with an Api Platform application (`https://api-platform.com/docs/core/messenger/`).
I do this together with doctrine.
What i want to know is this:
When a client calls an url on my api that generates lots of documents and…
Hey |mention:85340|!
Hmm. I don't know anything about the GraphQL implementation in API Platform, so unfortunately, I can't suggest any possible fixes.
Sorry I can't be more helpful!
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!
…made a typo, the correct service name is `api_platform.openapi.factory`.
> But I still don't realize where the factory option is coming from, it doesn't exists in the config
The `api_platform.openapi.factory` is a service name, not a config…
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…
Hey |mention:81069|
I believe you're confusing "pageNumber" with "paginationItemsPerPage". Here are the docs about pagination https://api-platform.com/docs/core/pagination/
Cheers!
…use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
#[AsDecorator('api_platform.serializer.normalizer.item')]
class AddOwnerGroupsDenormalizer implements DenormalizerInterface, DenormalizerAwareInterface
{
public function __construct(private NormalizerInterface|DenormalizerInterface $denormalize, private Security $security)
{
}
public function denormalize(mixed $data, string $type…
Hey |mention:82967|
Sorry for my late reply. I have the same question as here https://symfonycasts.com/screencast/api-platform-security/access-token-authenticator#comment-31679
I believe your authenticator might be misconfigured, let's debug that first
Cheers!
…thanks! Was having the same thing and it was stumping me.
Since I was dealing with PATCH instead of PUT because of the recent api-platform changes I was looking into that direction.
but setName() was removed when we set it in the constructor. The…
…not sure! I'm sure you could create a custom entity filter for this - https://symfonycasts.com/screencast/api-platform2-extending/entity-filter-logic - but I also can't find any info one way or another on if enum property filter support is there. I…
…Doctrine ORM 3 and DBAL version 4. I believe API Platform 3.2.16 should now work... which was just released 2 days ago https://github.com/api-platform/core/releases/tag/v3.2.16
Let me know if that helps! If it doesn't…
…groups based on the currently-authenticated user.
Another option might be to decorate and customize the `OpenApiFactory` - perhaps removing resources based on the current user- https://symfonycasts.com/screencast/api-platform-security/open-api-decoration
Let me know if any of these are successful.
Cheers…
Hey @aratinau!
To be honest, I don't have any idea! I just moved myself to this part of the project and even upgraded to the latest version of API Platform, just in case something changed. In my app, the inner state processor is still…
I'm relieved I'm not in cause there ;-)
Thank you for taking action to help fix the issue! :-) Your tutorial helps me so much in my journey learning to use Api Platform!
…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/6039#issuecomment-1959624424 - and I've added a bunch more detail. Hopefully the problem can be identified and fixed.…
Hi, I'm afraid this is not working (anymore? I'm on Api Platform Core version 3.2.13).
With this code :
```
…Thanks for your reply!
It turns out it was a problem with the version of API Platform. I updated Symfony from 6.3 to 6.4, but didn't update api-platform.
I updated to the latest API-platform version, and now it works again…
…except that the roles property would "skip" being set.*
I can confirm that API platform behaves exactly like that for my `PATCH`, with API Platform `v3.2.11`
I have prohibited access to every single property one by one by `#[ApiProperty(security: "is_granted('ROLE…
…mind on this, and google or chatgpt are not my friend :(
Is there any genius that sees what I am missing?
Symfony version: 6.4.2
API Platform version: 3.1.14
Thanks a lot, all help is really appreciated.
EDIT: sorry, I seem to…
x
1000+