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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
1022
API Platform
Filter Results