... '/pokemon/{id}'),
new Delete(uriTemplate: '/pokemon/{id}'),
],
normalizationContext: ['groups' => ['pokemon']],
denormalizationContext: ['groups' => ['pokemon']]
)]
```
API Platform return to me ...
Hey Alexander!
Sorry for the slow reply - holidays! To be honest, I'm not sure yet. I'm going to be working on the API Platform 3 tutorial over the next few weeks, and 2.7 and 3.0 are, I believe, effectively ...
... Let's say that the cheeselisting title/name has to be unique. And the user tries to POST a cheeselisting with the same name twice, I have it in my doctrine set to unique, and api platform returns a 500 server error ...
it is the latest version: "api-platform/core": "3.3.2". ...
Hello, is API Platform 3 compatible with Symfony 5.4? ...
What api-platform version is this podcast about? ...
Hey @Patricio-RM!
We don't have any plans to cover that right now. But API Platform does have docs and official support for Elastic Search - https://api-platform.com/docs/core/elasticsearch/ - and especially in ...
Strange Api-platform activity. It looks like ApiProperty Attribute doesn't work with json format. Why? And how to make ApiProperty to work on json format too?
I have simple ApiResource example
```
#[ApiResource ...
Writable Relation Fields
... inside our data mapper. Then API Platform handles transforming
them into IRIs.
One thing we haven't talked about is being able to write to one of these
relation fields.
When we use this post() endpoint, we don't need to ...
Base Test Class full of Goodies
... ideas.
Inside src/, create a new directory called Test/. Then, add a new class:
CustomApiTestCase. Make this extend the ApiTestCase that our test classes
have been using so far. If you're using API platform 2.5, the ...
Hey Romain S. !
Let me see if I can jump in and help out!
For full reference for anyone else reading this, usually this type of thing is done with a query extension - https://symfonycasts.com/screencast/api-platform ...
Hey Gianluca-F!
The only way I can think of is to hook into the "property metadata factory" system: this is the system that collects all of the API Platform metadata about each property. To do this, you would create ...
Hey Miky!
You absolutely *can* choose to do this. But it's not SO easy (there is not one simply function you can call to re-use the paginator). In API Platform, they actually use the core Doctrine paginator. This is ...
Hey @Edgar!
This is a super weird error! These custom normalizers in api platform are tricky, because you need to make sure (after you do whatever modifications you need) that you call the Serializer system again so ...
Hey @s!
I think I can help with this :). The flow is a bit complex. Here is what's going on (by the time you've finished this chapter):
1) API Platform queries for the actual CheeseListing entity object from the ...
Hi sridharpandu!
It sounds like you've done some excellent research! I am not personally responsible for API Platform and its docs, but I know the team that is, and I'm sure they would love any updates or improvements ...
... component, instead of something from ramsey. In other words, the UUID install chapter - https://symfonycasts.com/screencast/api-platform-extending/uuid - would look different, but I'm pretty sure the rest of the process ...
... ` IS present. And... that's interesting - because that's *exactly* the service that ApiTestCase looks for (and fails if it's not there): https://github.com/api-platform/core/blob/master/src/Bridge/Symfony/Bundle/Test ...
Hey Stefan L.!
Yea, I believe also that this would filter the main resource, not the colors property. So, the overall issue is how API Platform loads the colors property. The logic looks like this:
A) API Platform ...
Passing Values to Stimulus
... susceptible to CSRF attacks.
If you want to learn more, our API Platform 2 tutorial has a whole chapter on
SameSite cookies and CSRF tokens.
Next, let's turn to the other authentication use-case: API tokens.
1026
API Platform
Filter Results