1026 search results for API Platform

Hi, have just come back to this after rebuilding my backend with the latest version of api-platform etc and decided to use session-based authentication instead of JWT as it looks like the cleaner solution for my needs ...
... EntityListener to encode passwords on `PrePersist` works in all those cases... but only when creating the user. `PreUpdate` is not triggered by DQL queries, which Api Platform uses internally :/ Maybe I'm doing/understood something wrong?
Jérôme Zecca
Jérôme Zecca
Read Full Comment
Embedded Write

... is that the username field is not writable via this operation. Let's think about this. We're updating a DragonTreasure. This means that API Platform is using the treasure:write serialization group. That group is above the ...

7:29
... "? This shows your custom homepage and not the API Platform documentation? But... it's somehow a bit disfunctional? If you go to /api, on the bottom left of the web debug toolbar, if you hover over the 200 status code, which route is being matched for that page? Cheers!
weaverryan
weaverryan
Read Full Comment
... example, I can make a POST on my "/employees" with owner = /users/2 and all work good. :) My API is pretty new, I'm using the last version of API Platform with Symfony 5.0.1. I followed your tutorial since the beginning and ...
Cheers! I try to rework rest series based on api-platform this time and tested with behat. But examples for sharing multiple contexts in another context doesn't seem to work anymore. The entire example is found in https ...
Diaconescu
Diaconescu
Read Full Comment
... example, I make a request to `/api/articles` that it returns the list of ALL articles in ALL languages. Then adding the language filter is just a matter of using the built-in API Platform filters. B) If you used the "accept ...
weaverryan
weaverryan
Read Full Comment
Hey @Sebastian-K! Hmm, interesting! Subresources are cool - and are MUCH nicer than in API Platform 2 (they were kind of a hacked addon the, but they're a first-class citizen now). And so, we can definitely use them ...
weaverryan
weaverryan
Read Full Comment
... code: https://github.com/api-platform/core/blob/d62e86e9cfa2a7a4eba3029053ff65f43a10e1ce/src/Bridge/Doctrine/Orm/ItemDataProvider.php#L75-L80 In most situations, where the `$id` you pass in is a string or int, the ...
weaverryan
weaverryan
Read Full Comment
Triggering a Publish

... powered system! High five! Next: Let's make it possible to write the $owner property on dragon treasure. This involves a trick that will help us better understand how API Platform loads relation data.

4:14
Entity DTO Item State Provider

... UserApi DTO. So instead, return $this->mapEntityToDto($entity). That feels good. And... the endpoint works beautifully. If we try an invalid id, our provider returns null and API Platform takes care of the 404. Side note ...

4:11
Filtering on Relations

... ". Let's see... That worked! This shows all treasures owned by any user whose username contains maug. Pretty cool! Ok squad: get ready for the grand finale - Subresources. These have seriously changed in API Platform 3. Let's dive into them next.

3:51
Bootstrapping a Killer Test System

... can be used to test an API. Heck, API Platform even has their own tools built on top of those to make testing an API even easier. And yet, I'm going to be stubborn and use a totally different tool that I've fallen in love ...

8:18
Access Token Authenticator

... to authenticate. Fortunately we can do this via API Platform. Open up config/packages/api_platform.yaml. And a new key called swagger, though we're actually configuring the OpenAPI docs. To add a new way of ...

8:56
Hey @Joris-Mak! Sorry about the trouble and my slow response :). It tried to reproduce this locally but no luck yet. I used the `finish` tutorial code, updated all Symfony packages to 6.4, and upgraded API Platform ...
weaverryan
weaverryan
Read Full Comment
... Seems that it was just silently ignoring annotation about embedded object's type Looks like I missed something when updating symfony and API Platform Hope it will help someone Thanks for your answer, it definetely helped!
... said is the safest and simplest way. We CAN prevent stealing, but it adds complexity (both to the code and... just to my brain, lol). We talk about how to prevent stealing in the next tutorial - https://symfonycasts.com/screencast/api-platform-security/unit-of-work-validator Cheers!
weaverryan
weaverryan
Read Full Comment
Hey |mention:65641| I think that's unexpected. Have you watched this chapter? You may find it helpful https://symfonycasts.com/screencast/api-platform-extending/uuid-identifier By the way, I don't recommend using ...
MolloKhan
MolloKhan
Read Full Comment
Hey Ek24, Agree, I reattached that challenge to the next chapter - it makes more sense to show it there, thanks for reporting! > my cats missing the cat-lang of the courses. they still stuck on Api-Platform 2.6 ...
Maybe something has been changed in API Platform with updates, since this video was recorded. I've tried, and `securitySchemes` hasn't been overridden. ``` $securitySchemes = $openApi->getComponents ...