…the detailed information! This is pretty interesting. So, I am not aware of anything in the Symfony serializer itself (ignoring API Platform for a moment) that would do this. In fact, you can see in the docs that null values SHOULD be used, unless you…
Yup, there's an open issue about it - no fix proposed at the moment :/ https://github.com/api-platform/api-platform/issues/1892
Hey Monoranjan,
Unfortunately, no official possible solution as I can see the main issue is still open: https://github.com/api-platform/api-platform/issues/1892 - you probably may look over the thread to find possible workaround if any.
Cheers!
…thank you for the reply, I thought a lot about this, and my conclusion is that my case is not a proper way of using the API Platform and REST itself. I think we shouldn't modify the child collection results. But if we still…
…and find it so useful! So that means we could do the exact same thing with this build tool?
Or would it be better to do something by hand to get something better?
I'm just discovering API Platform and it's great! Thank you !
…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!
…https://api-platform.com/docs/core/getting-started/#product
As long as you create that `config/api_platform/resources.yaml` file and point to it from `config/packages/api_platform.yaml`, things should work.
Are you getting an error... or API Platform is just not…
Hey Nyenyemere Barry
I find your problemn similar to this issue. Would you mind looking at it and see if the any proposed fix works for you? https://github.com/api-platform/api-platform/issues/1099
Cheers!
Yea, it looks like there is a bug in 2.6.3 related to this - there are several open issues about it - it looks like you already found the main one ;) https://github.com/api-platform/api-platform/issues/1892
Cheers!
…and (hopefully) it should get attention. One user says that downgrading to 2.6.3 fixes it. I've added a comment to https://github.com/api-platform/api-platform/issues/1892 to see if I can motivate someone to do some extra digging ;).
Cheers!
…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!
…
Hey Cesar C. !
Excellent question! You an find info about that a bit later in this tutorial :) https://symfonycasts.com/screencast/api-platform-security/query-extension
Cheers!
…how do I functionally test a bundle" than it does with API Platform. Here is an example from another tutorial - https://symfonycasts.com/screencast/symfony-bundle/controller-functional-test - it does not include API Platform (so you will need to add that as bundle to…
…Sam Z.
Do you mean how to change the description of a field only for the PUT operation? Perhaps there's a way to do it by configuring the Swagger context https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts
Cheers!
…be used. It also gives you no help for generating things on the frontend (like next/prev links).
So... the answer is that... you "sort" of can re-use the paginator from ApiPlatform, but there is probably not aa huge advantage to doing so :).
Cheers!
…and want ask from another side. If we are using API Platform (currently it this time v2.6+) should we use somehow the pagination from it without that we will call api request ? Mean by use statement in controller of some part of Api Platfrom ?
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 create a CheeseListing at the same time. They…
…through api and so i enabled the multipart type in api_platform.yaml, then it said it couldn't deserialized and so i turn the deserialization off in the entity and then i got stuck at:
Could not resolve argument $data of "api_platform.action…
I believe you checked the wrong file. I'm talking about the file inside `config/routes`. Its content should be like this one https://github.com/symfony/recipes/blob/master/api-platform/core/2.1/config/routes/api_platform.yaml
Cheers!
Hi MolloKhan !
Yes, that file I have. And it contains:
`api_platform:
mapping:
paths: ['%kernel.project_dir%/src/Entity']
patch_formats:
json: ['application/merge-patch+json']
swagger:
versions: [3]`
x
1000+