1022 search results for API Platform

The Secrets Vault

... support the Symfony project, so it's a win-win. Anyway, the trickiest part of the process is Step 2 - creating the .env.local file with all of your production values, which will include things like API keys, your database ...

5:46
Input DTO Denormalizing IRI Strings

... doing this. And... fortunately API Platform comes with an ItemNormalizer whose job is to change IRI strings into objects by querying the database... or... more accurately, by calling the item data provider. So why isn't ...

5:33
DTO Input Initializer

... what's happening now: API Platform sets the existing CheeseListing onto OBJECT_TO_POPULATE, but since we're not deserializing into that type of object, it's ignored and a new CheeseListingInput is created: But... we ...

6:41
Sluggable Doctrine Extensions

... entity is queried for or other times. You do this by creating an event subscriber or entity listener. We do have an example of an entity listener in our API Platform tutorial if you're interested. Next, let's add two more ...

5:57
The await Keyword

... that API Platform adds to every resource. It's... just more useful than a database ID or UUID because it's a real URL: we could make a request to this address to fetch that specific product. That "usefulness" won't be ...

7:34
Serializer Error Renderer JSON/XML Errors

... change this data, you could do that by adding your own custom normalizer. We actually talk about this in our API Platform Security Tutorial. You could decorate the ProblemNormalizer... and maybe just add or tweak some data ...

5:40
... is actually `UuidDenormalizer` - https://github.com/api-platform/core/blob/2.7/src/RamseyUuid/Serializer/UuidDenormalizer.php - so not the `UuidNormalizer` that I had linked to earlier - that one is in the `Identifier ...
weaverryan
weaverryan
Read Full Comment
... annotations to php8 attributes (though I could have converted the generated code back to annotations instead, I think). Now on it part 2! ``` api-platform/core v2.6.8 doctrine/annotations ...
... time, the `ApiPlatform\Core\JsonLd\Serializer\ObjectNormalizer` is hit 5. It call his decorated serializer after set `$context['api_empty_resource_as_iri'] = true`. There is a big comment in the Api Platform code wich ...
Lucien D.
Lucien D.
Read Full Comment
Hi Chloé! Excellent, crazy question - I like it! So, this is something that we'll talk about in the next tutorial - https://symfonycasts.com/screencast/api-platform-extending - but it will be a few more days or even a ...
weaverryan
weaverryan
Read Full Comment
... //symfonycasts.com/screencast/api-platform-security/access-control-voter This will allow you to do any checks you need: A) Check to make user the current user is authenticated B) If the currently-authenticated user === the user that's ...
weaverryan
weaverryan
Read Full Comment
Hi Pedro, I am very sorry you have the same problem, but also glad. This proves I'm not grazy !!! The 'solution' for now is very very bad but it works: It's the vendor\api-platform\core\src\Bridge\Doctrine\Orm ...
Decoration Override Core Services AsDecorator

... is... sort of all over! In API Platform, it's common to use decoration to extend core services like the ContextBuilder. And Symfony itself uses decoration pretty commonly to add debugging features while we're in the dev ...

9:56
FrameworkBundle Recipe Part 2 The Kernel Class

... relatively new security-related feature that's quickly been adopted by most browsers. We talk more about it inside our API Platform Security tutorial - but this setting shouldn't cause problems in most setups and is ...

8:37
Testing Updating Roles Refreshing Data

... When you make a request for an operation, the normalization groups are determined on an operation-by-operation basis. In the case of a User, API Platform is using user:read for normalization and user:write for ...

9:22
... it will work: 1) You setup a custom resource metadata factory, like we did here: https://symfonycasts.com/screencast/api-platform-security/resource-metadata-factory 2) Inside, on a high level, you would look for your ...
weaverryan
weaverryan
Read Full Comment
... just build this as a custom route/controller in Symfony, and not through API Platform. Use the serializer directly to serialize the User object into the `jsonld` format. Let me know if this helps - excellent question! Cheers!
weaverryan
weaverryan
Read Full Comment
One year diversity initiative

... program already. We also, or API Platform, sponsored Rails Girls Summer of Code. Um, they also offered to mentor. Uh, in the end, unfortunately they weren't picked as a mentor. But, what I got from Kevin was actually by ...

37:11
Head first into Symfony Cache Redis Redis Cluster Andre Rømcke

... actually going to be on your application. So in our case on the eZ Platform side, we did change this to make sure we could take advantage of looking up several things at the same time. Instead of us having our API where ...

37:44
Back to the Basics Symfony local Web Server

... may be slow depending on the platform, especially on a Mac. I mean it is for me at least. Um, and it's kind of inconvenient and I'm going to talk about that as well. Um, Nginx and Apache, it depends on your skills on ...

31:36