1000 search results

Input DTO Update Problems

…when the serializer deserializes the JSON into the CheeseListingInput, the owner property will be null... and then we pass that null value onto $cheeseListing->setOwner(). When API Platform tries to save the CheeseListing with no owner... error! But... let's back up: there's a…

6:38
Type Validation

…argument is not nullable, if you tried to send a price field set to null that value would not be legal to set on this property. When this happens, API Platform returns a 400 error. It's not a validation error exactly... but it effectively…

7:29
Filter Autowiring

…option and sets those as named arguments on that service. Why do we care about how our filter objects are instantiated? Because when API Platform registers the service, it also sets it to autowire: true. Yep, this means we can access services in our filter…

5:46
Ajax with Axios

…for GET /api/products. The best way to see how this works is... to try it! Let's see... hit Execute and... here's the response body. We already have a set of products in the database. If you haven't used API Platform before …

5:41
Filtering the Products

…done a bit of work behind the scenes in API platform to allow us to fetch all the products for a specific category. Here's how it works: we can enter a category's IRI into this box: so, /api/categories/ - and then 24 to…

4:51
Diving into the Normalizer Internals

…The embedded cheeseListings data has them... but each user does not. What's going on? When you work with API Platform, the Symfony serializer has many normalizers. I'll hit Shift+Shift and search for a class called ItemNormalizer. There are a bunch of these …

4:49
Mercure : des UIs toujours synchronisées avec la BDD (Kévin Dunglas)

…un serveur Mercure découvrir le serveur côté client s’abonner à des mises à jour publier des mises à jour avec Symfony et API Platform (qui disposent déjà du support officiel du protocole) mettre à jour des apps React avec les données envoyées par Mercure…

44:16
Des apps Symfony sous stéroïdes grâce à Vue.js, Mercure et Panther ! (Kévin Dunglas)

…talk nous découvrirons comment utiliser ensembles VueJS (l'un des frameworks les plus populaires en JavaScript), API Platform (l'outil de référence pour la création d'API web modernes), Panther (l'outil de test E2E de Symfony qui est capable d'exécuter le JavaScript afin…

44:16
Course

Learn JS

The Delightful World of Vue

…can sink your teeth into, even if JavaScript isn't your main gig. In this tutorial, we'll build a real-world "Products" area for our site using an API-Platform-powered API. Will it be a single-page application (SPA)? Nope! Not in this…

48 videos
|
5:05:52
SymfonyCon 2019 Amsterdam Conference Videos

…experiences at this sold-out event. The conference featured 3 tracks, 30 speakers and 33 talks ranging from watching the live release of Symfony 5, to API Platform, Messenger, and many more things. Ready to watch (or re-watch) the presentations? The videos are available…

33 videos
|
20:51:09
Symfony Live Lille 2019 (French)

…Symfony (évidemment), mais aussi Mercure, Doctrine, API Platform ou encore React et Redux ainsi que des bonnes pratiques sur les meilleurs bundles et outils pour vos applications Symfony, et d’autres passionnants sujets ! Vous êtes prêt à regarder (ou revoir) les présentations ? Les vidéos sont…

7 videos
|
4:30:19
SymfonyCon 2018 Lisbon Conference Videos

…meet and share their experiences around Symfony. And over 25 speakers presented on topics ranging from the new Symfony web server, to Messenger, to API Platform and so much more. Ready to watch (or re-watch) the presentations? The videos are now available to everyone.

27 videos
|
16:38:22
Client Credentials

…new "Chicken Oversight Operations Platform", or COOP site has just launched! With COOP, you can login to the site and collect your chicken eggs, unlock the barn, and do all kinds of other things just by clicking a button. Noticing that COOP has an API

8:57
Environment Variables

Open config/packages/framework.yaml. We don't need to be authenticated to use this raw user content part of GitHub's API: But if we hit this endpoint a lot, we might hit their rate-limiting, which is pretty low for anonymous users. So…

7:53
API Setup & AJAX with fetch()

…re not going to spend a lot of time talking about the API side of things: we'll save that for a future tutorial. That's when we'll also talk about other great tools - like ApiPlatform - that you won't see used here. Anyways…

7:14
Embedded Write

…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 owner property, which is why we can change the owner. But if…

7:29
Filtering on Relations

…and hit "Execute". 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
Subresources

…wildcards" in your URL. Pass user_id set to a new Link() object. There are multiple... we want the one from ApiPlatform\Metadata. This object needs two things. First, point to the class that the {user_id} is referring to. Do that by passing a…

9:54
On Authentication Success

…look something like '/api/users/'.$user->getId(). But I don't want to hard code that because we could potentially change the URL in the future. I'd rather have API Platform generate that for me. And fortunately, API Platform gives us an autowireable service…

6:03
Decorating the Core State Provider

…class - make sure to get the one from ORM. And yup! That is a valid service id. There is also a harder-to-remember service id, but API Platform provides a service alias so that we can just use this. Lovely! Ok, go test go…

4:47