1022 search results for API Platform

User API Resource

... update the state... instead of waiting for the Ajax request to finish to get the new auto-increment id. Anyways, my point is: API Platform does support UUIDs. You could add a new UUID column, then tell API Platform that it ...

5:51
Custom Paginator

... filters will not work for custom resources... because API platform has no idea how to work with your custom data source. Nope, if you want filters or pagination on a custom API resource, you need to some work yourself. But ...

7:04
Des apps Symfony sous stéroïdes grâce Vue.js Mercure et Panther Kévin Dunglas

... 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 ...

44:16
App Test Setup

Hey friends. Yea! It's time for part 3 of our API Platform tutorial series. First, let's do a status check, because we have been busy! In part 1, we got everything we needed for a pretty sweet API. We talked about JSON ...

7:44
Input DTO Validation

... validation rules live here and we have no constraints in CheeseListing. But... unfortunately, API Platform does not automatically validate your input DTO objects: it only validates the final API resource object. So ...

5:43
Ajax with Axios

... it. Both Axios and fetch are great options. For our first trick, let's load products onto the page. Our app already has an API - powered by API Platform - and you can see its docs by going to /api. Scroll down to the ...

5:41
Thank you Ryan for your insight. The fact that it's used by API Platform is a strong point. I found this interesting article on Github where API Platform explain their choices. https://github.com/api-platform/api ...
Hydra Describing API Classes Operations More

... going to be able to get a lot more information about your API, automatically. But in API Platform, there is one other thing that you're going to see all the time, and we're already seeing it! Hydra, which is more than just a ...

6:01
Hey Mihail! Ah, interesting! What happens if you try Symfony 5.2 and API Platform 2.5? API Platform 2.5 *does* work Symfony 5.2 - the `^5.1` in API Platform's composer.json allows 5.2. I would be curious if the bug ...
weaverryan
weaverryan
Read Full Comment
Hey Vishal T.! Let's see if we can figure this out :). First, are you using API Platform 2.5? If so, then you don't need to copy any of our test code from this chapter - https://symfonycasts.com/screencast/api ...
weaverryan
weaverryan
Read Full Comment
Dynamic Groups Context Builder

... learn more about how API Platform works under the hood - I want to show you an alternative solution. Remove the ApiProperty attribute: And replace it with two new groups. We're not going to use the normal treasure:read and ...

8:26
Ah, great work Tristan P.! And it looks like someone has linked to another issue - https://github.com/api-platform/api-platform/issues/1892 and another issue https://github.com/api-platform/core/issues/4252 which might ...
weaverryan
weaverryan
Read Full Comment
Embedding Custom DTO's

... objects that were API resources. But now, it holds an array of normal, boring objects that are not API resources. What difference does that make? Check it out. Boom! Embedded objects! When API Platform serializes the ...

4:47
Hello Ryan! This was a great tutorial series! But I've also run into the same issue: I want to be able to write custom business logic while still having API platform features like API documentation, effortless (de ...
Mindaugas V.
Mindaugas V.
Read Full Comment
Custom Filter apply

... data provider. However, because we made our filter implement the FilterInterface from the core Serializer\ namespace, API Platform will help us a bit: How? By automatically calling our apply() method on every request for ...

8:15
Input DTO Class

... CheeseListing and then API Platform will start deserializing the JSON to create that object. Then, our job - via a data transformer - will be to convert that input object into the final CheeseListing so that API Platform can save it ...

7:16
I think that the React Admin from api-platform/admin is based on HydraAdmin (correct me if im wrong). I tested both because i wanted to know if the base of it makes the problem or api-platform/admin itself :) If ...
Sebastian
Sebastian
Read Full Comment
Hey Ewald V.! I'm happy to see you're trying the new security component - it's awesome :). But... it looks like API Platform needs to be updated to work with it, specifically for anonymous users. The problem is here ...
weaverryan
weaverryan
Read Full Comment
composer require api is no longer official install for using API Platform 4 You need to use `composer require api-platform/core` package There is some confusions between first page website API Platform and their ...
If you install API PLATFORM without framework distribution it seems that issue : api-platform/core is not installed with "composer require api" and it seems to by mandatory if you want to HAL format api run. nothing ...