... ={AudienceCategorySlug}`. You might need to create a custom filter for that "audienceCategory" because, iirc, API Platform would want you to do something like ?audienceCategory/api/audience-categories/5 (where 5 if your ...
... "POST"?
GET - because you are "fetching" user data.
> 2-How can I retrieve the User data by submitting a Bearer Authorization Token instead of adding an id to the Url.
> Does API Platform support this?
Good question. You ...
Automatic Serialization Groups
... Can we have both automatic groups and
good documentation? Yes! By leveraging something called a resource metadata
factory: a wild, low-level, advanced feature of API Platform.
Let's dig into that next.
Hey @Rudi-T!
Hmm, you literally have `path/실례.html` in your schema? That appears to be... a Korean character? And the `.html` is also weird. I have no idea what would be causing this. The mechanism in API Platform is ...
I have an Endpoint with takes a UUID property and an array of UUIDs via POST.
In API Platform 2.6, I had a class tagged as ApiResource with has a path and an Output-Class defined (another ApiResource, which is also a ...
Hy Ryan,
sorry for the late answer.
I'm working on a project with multiple Microservices which are based on Symfony 5.4 and Api-platform 2.7. These will have to be upgraded to Symfony6 and Apip3 sooner or later ...
... versions. For example, `str_replace()` exists in this class in API Platform 2.4 and 2.5, but not in 2.6: they may have fixed some bugs or find a better way to do something. I would try upgrading if you can. If you can't ...
... (not really much related to API Platform itself, but things more related to Symfony). We will upgrade these tutorials... but I'm not sure when. I need to check with the API Platform team to see what their roadmap is (so we ...
This is just FYI as I am using API Platform 2.6.8.
The desciption for the filter in the documentation was not working for me.
Instead of:
```
return [
'from' => [
'property' => null ...
Hi
A couple of things:
First, I work mostly with graphql on API-Platform and would appreciate if you create a specific tutorial for that.
Secondly, with API-Platform graphql, I would normally do this type of ...
... this class - https://github.com/api-platform/core/blob/2.6/src/Bridge/Doctrine/Orm/Paginator.php - is your "data" and then that is run through the serializer. Other normalizers - for example https://github.com/api ...
... "start" of this tutorial + what we've done in the first 9 chapters. To help, what kinds of issues are you having? Is it related to the API Platform test files that we "backport" from version 2.5 (which wouldn't be necessary ...
... `.
Finally, you will pass the Paginator object from part B to the serialize filter.
To help a bit more, if I'm reading the code correctly, here is where these objects are created in API Platform: https://github.com/api ...
Hey @Aaron Kincer!
Hmmm. So, on a "high level", the problem is simple-ish ;).
When you call `$iriConverter->getIriFromItem($someObject)`, API Platform looks at whatever class `$someObject` to find its `@ApiResource ...
... being imported from "C:\Users\ack\PhpstormProjects\API-Platform-Training2\config/routes/api_platform.yaml"). Make sure there is a loader supporting the "api_platform" type.").`
So I decided to check:
`C:\Users\ack ...
I also add my composer.json :
```
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"api-platform/api-pack ...
... NotBlank on password not checked for the edit profile form.
We have a nice example of this inside API Platform: https://symfonycasts.com/screencast/api-platform-security/validation-groups - it's not using a form, but it shows ...
... this situation.
What's going on? By chance, I just talked about it on the API Platform security tutorial a few days ago: https://symfonycasts.com/screencast/api-platform-security/test-setup?playAt=190
So, yes, you're ...
Hey Eric!
Hmmm. This is really-well explained... and the behavior is strange enough that I'm pretty sure this is caused by a bug somewhere in API Platform. Could you open an issue on their repo with all this ...
... 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 ...
1027
API Platform
Filter Results