Interesting, inside your `composer.lock` file search for `api-platform/graphql` if you find it, delete the lock file and re-install your vendors.
If that's not the case, execute at the root of your project `git grep "graphql" just to see if we…
Hi,
Apologies, I'm relatively new to Symfony/API Platform, so my terminology maybe slightly off. But I have been following this tutorial and creating my own API, and I am having an issue whereby when using `DTO`s, a `ManyToMany` relationship is being returned…
I did find an issue with `composer require api` when following along with the code provided by this course. A new `phpstan/phpdoc-parser` 2.0 was being installed but the api-platform version used in this course (3.2) didn't support it.
I…
That response was wonderful. Just with...
```
# api/config/packages/api_platform.yaml
api_platform:
mercure:
enabled: false
```
It solved the problem. Thank you very much!
Hi,
I'm working on an api with a State Provider and Voter, I'm finding that the provider is invoked before the voter. This leads to some odd results, 404 instead of 401. In the API Platform doc's I can see that providers…
Hi Ryan,
Is it possible to completely remove the PUT item operation from my API in the `api_platform.yaml` file?
Thank you,
Sean
…Doctrine and the Eager Loading. But I have to admit that in my first project with API Platform I encountered an unfavorable combination, combined with quite interesting bugs that e.g. made a difference on which platform the project was built... So I am not…
Hey pasquale_pellicani,
The first part of this tutorial is here: https://symfonycasts.com/screencast/api-platform2 . You can easily see the related courses on the track page: https://symfonycasts.com/tracks/rest#api-platform-2
Cheers!
… I have created an API using Symfony 6 and API Platform 3. For the first entities, everything went fine but I have an error now when I am doing a GET collection request for User entity (`api/users`) :
> Unable to generate an IRI for…
I am going through this tutorial with the latest version of Symfony (6.1) and API Platform (2.6). When attempting to update the owner object via an embedded object within my cheese listing, I did not receive the doctrine error described in this video…
Perhaps this chapter could include a comment about if this is appropriate to use with API Platform, or if for API Platform one should use their react Admin package instead? https://api-platform.com/docs/admin/
Hi,
how might one filter/create a custom API platform filter for a virtual property like 'isMe'? If someone wanted an API client to be able to filter and retrieve either all resources where isMe is set to false, or all resource where isMe is…
…meant was if it was possible to somehow grab the API Platform error responses that already exist instead of creating our own.
Does that make any sense?
What you suggest (I actually already tried it) is to create our own "mimicking" the API Platform one…
Hey, everyone.
Is it possible to return an API Platform error response in JSON-LD format in these cases where the route is not managed by API Platform?
Thank you.
Hey Patrick,
Hm, from the docs page https://api-platform.com/docs/core/operations/#operations I see PUT should replace an element, and PATCH should apply a partial modification to an element. Also I see that the PATCH method must be enabled explicitly in the…
Hello,
I didn't find anything related to API versioning. I want to use something like /api/2020-09/some-endpoint, then /api/2020-10/some-endpoint. Is API-Platform able to do that? or probably something related to versioning? It's really cool to…
Thank you! I am very interested how far Api-platform endpoints customization can go.
Hi soufianejhioui!
Welcome to the nice world of API Platform :).
> 1 - Is api Platform suitable for making microservices ?
Sure! It makes creating APIs quick and easy - I don't see any problem here.
> My matter is i have an openapi specs and i…
Many thanks! I opened an issue on the api-platform github project as truuslee recommended, let's see if someone can take a look at it.
Cheers!
It took me a day to find out that for GraphQL we need to use `api_platform.graphql.serializer.context_builder` instead of `api_platform.serializer.context_builder`
x
1000+