1026 search results for API Platform

... 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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
Roozbeh S.
Roozbeh S.
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
... ":[{"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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
... 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! ...
MolloKhan
MolloKhan
Read Full Comment
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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
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 ...
Johanna B.
Johanna B.
Read Full Comment
... 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!
weaverryan
weaverryan
Read Full Comment
... 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 ...
weaverryan
weaverryan
Read Full Comment
... 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 ...