Hey @Yangzhi!
Sorry for the slow reply :). Hmm. Ideally, you could translate this "custom condition" into a query. Then, you would create a custom API Platform filter - https://symfonycasts.com/screencast/api ...
Hi, I see you switched to UUIDs in this tutorial.
It looks like, that if you add an "id" to a POST request, API Platform handles the request as PUT request. The error message is "Update is not allowed for this ...
... API Platform 3.0, set it for the collection operation "validation_groups" of the class "App\Entity\User".
```
1x: The "route_name" attribute will not be set automatically again in API Platform 3.0, set it for the collection operation "validation_groups" of the class "App\Entity\User".`
Using Symfony 5 and Api Platform 2.5
DTO Quirks
... now, just delete it so that
the tests will pass.
But good news! Thanks to the API Platform team, this bug has been fixed and
should be released in API Platform 2.5.8. But since that hasn't been released yet
at the time of ...
Hi guys! Thanks a lot for the API platform series course.
Is there any way to have a different API endpoints split by subdomains (or scopes)?
For example:
www.apidomain.com/api1/
www.apidomain.com/api2/
etc.
so each ...
Thanks for another great tutorial.
Does the base path have to be /api or can that be changed? I would like it to be /apiv2 or something. I ask because my app already has enpoints with /api and I would like to gradually move to the api-platform. What pitfalls can I avoid when installing api-platform and it's modification. ...
Filter Autowiring
... someone instantiates our
filter object... and it's a pretty good guess that API Platform does it directly
and uses the arguments option to figure out what arguments it should pass to
the constructor.
But actually, our filter ...
SerializedName Constructor Args
... our class. And in the case
of a fake property like textDescription, API Platform strips off the "set" part
and makes it lower camel case. By the way, like everything in API Platform, the
way fields are transformed into ...
Hey @Chtioui!
No OAuth / social auth in the upcoming API Platform tutorials. If you want to allow your users to "log in" via some social service, I'd check out https://github.com/knpuniversity/oauth2-client-bundle. I ...
... ":"","file":"\/Users\/casrime\/Downloads\/code-api-platform-security (3)\/finish\/vendor\/symfony\/security-http\/Firewall\/ExceptionListener.php","line":187,"args":[]},{"namespace":"Symfony\\Component\\Security\\Http ...
Filtering Searching
... search
on the front-end and need to find by title? These are called "filters": ways to
see a "subset" of a collection based on some criteria. And API Platform comes
with a bunch of them built-in!
Let's start by making it ...
Hi Ryan,
I watched the API Platform 2 course. I plan to watch this one but for now I did not find the time to do it. I still searched if there was the same course "[Automatic Serialization Groups](https ...
Hey Toshiro!
Woohoo! Nice work!
So, the only mystery is why you needed to do this but I didn't. Mostly, it makes sense: you're not inside an API "context" (this isn't an API Platform endpoint), so API Platform ...
... Definitely! We'll cover the new way of doing things soon in an API Platform v3 version of this tutorial :). Things are actually MUCH nicer with DTOs in API Platform 3 - I never liked this data transformer business all that much.
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 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! ...
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! ...
... I'm having the same problem here, I installed api platform by the official guide with docker, so the version is different the one you used for the tutorial, api platform 2.6 symfony 5.2
Hey Sébastien J.
We are actively releasing a new course about Api Platform + Symfony + Vue.js. I know it's not ReactJS but its internals are very similar
https://symfonycasts.com/screencast/api-platform-security
Cheers! ...
1016
API Platform
Filter Results