…https://api-platform.com/docs/distribution/ and when I run the same command it works with the command symfony serve -d. So the only 2 differences I see is that when I have created the project following the instructions of api-Platform we start by…
…The key is serialization groups. We talk about it here: https://symfonycasts.com/screencast/api-platform/embedded
So the key should be to add the `datos_personales:read` to your employee entity only above the fields you want (name and surname). I'm not sure…
Hey Adeoweb!
Ah, good catch! I bet that's a change in API Platform - I'll check it out and we'll add a note if needed (it sounds like it is needed).
Cheers!
Hey there . What if I want to use a DTO input class for the owner entity also? I couldn't find any cast about embedded relations (like https://symfonycasts.com/screencast/api-platform/embedded) for DTO classes.
…somehow, our "login()" controller is being executed: https://symfonycasts.com/screencast/api-platform-security/auth-errors#codeblock-97d390e75d without authentication happening.
That shouldn't happen (in theory). Here is what the flow *should* look like:
A) We make the request to /login with the login…
Hi there,
It may not the right chapter to ask this, but I have a small issue with API Platform Security: when I login, i get back the right infos from my entity thanks to the useful groups ("@groups({"user:self", "user:list"}) for example…
…
> $validatorBuilder = new ValidatorBuilder();
Hmm, you have this code? Are you using the the Symfony Framework or API Platform in a custom application (with no framework)? I'm asking because, in the Symfony Framework, you are not responsible for instantiating the ValidatorBuilder: it's…
…negotiation/#reusing-the-api-platform-infrastructure and what we should put there?
2) Does there a way to acess to _format inside my controller, In fact apiplatform they force remove the _format from the open api document.
https://github.com/api-platform/core/blob/db5275885a3052b52a60dedcf530d06199a16f01…
…Now that PATCH is supported, it appears that, in future versions of API Platform, PUT will change to be a "true" PUT.
B) So, to answer your question: you should probably start using PATCH for these "partial" updates right now (I'll add a note…
…Symfony doesn't offer to mark the entity as an API Platform resource. Steps I took:
1) composer create-project symfony/skeleton
2) composer require api
3) composer require symfony/apache-pack (to enable /api route to work)
4) composer require maker
5) bin/console…
…the api_platform one is just a way to inject the stateless attribute into the api_platform security config?
> You certainly *can* write some vcl to tell Varnish to not do this
Thanks, it confirms my intuition. The more I work with API Platform…
…API-Platform v2.6. Cookies were never send in response to login request. I discovered that the config framework.yaml file had no more session configuration by default. I had to put it back, and to put the stateless attribute to false in api_platform…
Hi team!
Are you going to publish a demo of mercure without using symfony turbo in this course?
Some reactjs example using api platform?
Thanks!
Hey php-programmist!
This is a really excellent question :). The problem is that the "resource metadata" (i.e. the collection of all of the API Platform annotations, property information, groups that are on each property, etc) is built during "compile" time of the container. So…
Hi, Tell me please, Are there many diference between 4.x 5.3 SF versions? Can I study authentication and authtorsation by this tutorial, or better to start from "API Platform Part 2: Security" ?
Thank you.
…is there a difference between using an Entity Listener or a Data Persister?
To my understanding, a Data Persister is only executed when using API Platform and an Entity Listener is always executed be it with API Platform or not. Am I thinking right?
So…
…always dedendencies).
At this point my code is like https://github.com/atournayre/symfonycasts_code_api_platform-_security/commit/f8f5133e0c901d06d044bfba64a17f3246654bc5
When I run
`composer require symfony/test-pack --dev`
Here is the end of composer's trace
Symfony operations: 1 recipe (07704831784e60d7ba454f35c88fd980)
- Configuring phpunit/phpunit…
…Excellent! I would say that the best practice is to use an extension when you're able to because. This is a "smaller" hook: you're letting API Platform do its custom logic, and you simply modify the query right in the middle of it…
…Platform, for Symfony 5 and PHP 8, to which is added the 'custom SDK' part, which you can see here
https://github.com/bastien70/api_platform_tuto/tree/main/src/Library
I updated the authentication system with LexikJwtBundle.
And now we can use the API…
…at least in API Platform 2.6.5, adding `@ApiResource()` is not enough, since it requires to explicitly mark the identifier for the resource. So, you'll get an error like this:
`No identifier defined in "App\Entity\DailyStats". You should add #[\ApiPlatform\Core\Annotation…
x
1000+