... this tutorial, we DID tackle this: it's this topic - https://symfonycasts.com/screencast/api-platform2-security/resource-metadata-factory
And, I've had several people ask me how to do this in API Platform 3. Fortunately ...
Hey Wondrous!
Sorry for the slow reply! We're usually much faster - that's my bad - prepping for a conference next week!
This is an interesting question/problem. First, when using Doctrine (ignore API Platform for a ...
... neither is the DTO to Entity transformer. Instead, Api Platform attempts to denormalize my input directly into the Entity class, creates an entity full of null values, and then causes an exception when trying to save that very ...
... controller and a router to login page and a Database!
Also, an API platform(REST) with User and Person and Token Entities!
(In additions, the "User" Entity has a person_id and Token Entity has a user_id).
In the ...
Hey Carlos!
Happy new year!
Yea, I see the issue. First, it's not the Symfony inflector we're dealing with - but the Doctrine one... not that this helps us really (just noting that for clarity). Inside API Platform, I ...
Hey @Xav!
Nice job solving the issue!
> It's quite simple but I still have a lot of trouble understanding what is - or not - a "best practice" with Api Platform.
API Platform talks a lot about REST best practices ...
... ":[{"propertyPath":"password","message":"This value should not be blank."}]}
C:\Users\ack\PhpstormProjects\API-Platform-Training2\src\ApiPlatform\Test\BrowserKitAssertionsTrait.php:42
C:\Users\ack\PhpstormProjects\API-Platform-Training2\tests\Functional\UserResourceTest.php:32`
... Hey Rakodev!
> Thank you very much for the great work you do with these API Platform tutorials
❤️
> Is there a way for me (as a backend developer) to login via Swagger so I can test the whole authentication part ...
... class: https://github.com/api-platform/core/blob/main/src/Api/IdentifiersExtractor.php
If you poke in there and have success, let me know. Otherwise, it's a tiny bit of duplication, but I think your solution is fine ...
... exposes the `Link` header by default:
```
nelmio_cors:
defaults:
...
expose_headers: ['Link', 'Location']
...
```
Thanks for showing all the cool stuff about API Platform !
... but it's written for version 2, however, the logic is still relevant but the code will change for version 3
https://symfonycasts.com/screencast/api-platform-extending/output-class
Oh, and here are the docs about DTOs https://api-platform.com/docs/core/dto/
Cheers! ...
Hi Ryan,
In this chapter you are talking about the DTO solution, are you going to do a course to explain how it works in Api Platform v3?
I've always used them in v2, to separate the Entities from the Api. But in ...
... normal `setDescription()`), when a `description` property is sent to the API, API Platform sees that `setTextDescription()` should be used and then reads *its* `Groups`. It actually doesn't know or care that the `description ...
... and everything is going okay! but I can't use the API correctly and I don't know exactly the requested steps for this process.
For now i am using API Platform and NelmioCors bundle. Should I use LexikJWTAuthenticationBundle too? Is there any bundle or steps I should use too?
... API Platform's GraphQL), there shouldn't really be any advantage or disadvantage. Frequently in the API Platform docs, they recommend solutions that "work everywhere" vs GraphQL or REST-specific solutions... just for ...
Hi,
how might one filter/create a custom API platform filter for a virtual property like 'isMe'? If someone wanted an API client to be able to filter and retrieve either all resources where isMe is set to false, or all ...
... the Stripe-php library and find it so useful! So that means we could do the exact same thing with this build tool?
Or would it be better to do something by hand to get something better?
I'm just discovering API Platform and it's great! Thank you !
... has a custom query to return a sub-set.
I'm sure there are other solutions - but this is absolutely what I would have done. Here is some more info on this approach: https://symfonycasts.com/screencast/api-platform-security/filtered-collection
Cheers!
... use the course code directly, and I want to make sure that's ok :).
Here's a conversation about the issue: https://symfonycasts.com/screencast/api-platform/api-resource#comment-5080596003
Basically, somehow, your ...
... I'm using api-platform/core 2.5.6 and symfony/framework-bundle 5.0. It appears that the Symfony validators are firing based on the ORM definition of user before the data persister is used. The error I get when I ...
1026
API Platform
Filter Results