1015 search results for API Platform

... things like Doctrine, Twig, etc are pre-installed) 2) Added your 2 entities exactly to my project 3) Removed a few extra properties - like "job" - to get things working 4) Then used the API Platform admin area to do exactly ...
weaverryan
weaverryan
Read Full Comment
Hey hous04! Short answer: make your properties private. I believe the main reason that you sometimes see public properties used in the API Platform docs is nothing more than... it's easier/shorter to write ...
weaverryan
weaverryan
Read Full Comment
... You're fast. Thank you! I've decided to create an entity for the existing db table. This works great. But now I run into a different 'challenge'. When using api platform multiple database connections won't work. This ...
Hey back! :) First, I'll admit that this isn't something I've had to deal much with directly. But, I can give you some guidance :). API Platform does have some docs on this - https://api-platform.com/docs/core ...
weaverryan
weaverryan
Read Full Comment
... 8000/api/products?currentCategoryId=%2Fapi%2Fcategories%2F2 using the Platform API interface or curl, the data comes back as it should: five items of office furniture (the id of the Office Furniture category in my world ...
davidmintz
davidmintz
Read Full Comment
... that you could POST to create a new subject and include a "parent" field set to the IRI of some other subject (e.g. /api/subjects/2). However, because this is a self-referencing relationship, API Platform will see that the ...
weaverryan
weaverryan
Read Full Comment
I am evaluating the API Platfrom to migrate a few of my applications. I narrowed down to the API platform after evaluating offerings from other PHP framework vendors and even workflow applications. My initial feedback ...
sridharpandu
sridharpandu
Read Full Comment
Hey php-programmist! This is a really excellent question :). The problem is that the "resource metadata" (i.e. the collection of all of the API Platform annotations, property information, groups that are on each ...
weaverryan
weaverryan
Read Full Comment
Loving the API Platform specific SymfonyCasts. Nice clear and easy to understand. Wish these were out a year ago when I started building my API Platform based API haha. Would have saved me a lot of time researching how ...
JSON-LD Context for your Data

... thinking: Wait a second! Isn't this exactly the same info that the OpenAPI spec gave us? Well, you're not wrong. But more on that in a little while. Anyways, the really cool thing is that API Platform is getting all of the ...

10:30
... DTO before api-platform tries to serialize. Below is a quick and dirty fix that resolved the issue for me on my end. Hope this helps someone! ```
Hey @Peter-P! I'm hoping to do an episode 4 at some point, which will include filters. No timeline however! Until then, we do talk about custom filters in the API Platform v2 version of this tutorial - https ...
weaverryan
weaverryan
Read Full Comment
... relations that you need to embed? Maybe you don't embed anymore and rely on Vulcain in this case? Cheers Edit : Oh sorry I was in too much of a hurry, all my questions seems to have an answer in the next part : https://symfonycasts.com/screencast/api-platform-security Thank you very much
Hi everyone, I am working on an application with API Platform 3. I have an Entity called "Users" and another Entity called "Prospects". I have created a route: /api/users/{partner_id}/prospects/{id}, where ...
... details at https://github.com/api-platform/core/issues/4672 -- I'd LOVE to be able to solve this problem, as I have a hack that does two larger-than-necessary API calls and then slices the result as needed. Ugh.
Tac-Tacelosky
Tac-Tacelosky
Read Full Comment
Hi, I faced the same issues mentioned below and in the previous video whereby I had to specify api-platform/api-pack "1.2.0" and doctrine/doctrine-migrations-bundle "^2.0" and now I'm getting a connection refused error ...
Freddie's flowers
Freddie's flowers
Read Full Comment
Hello Ryan! Yes it already seems a little clearer to me! So I moved forward a bit, and here is the end result : https://github.com/bastien70/api_platform_tuto This is the entire training on API Platform, for Symfony ...
... //github.com/api-platform/core/blob/6336f6446722cd6728683c36fb70e0074553296d/src/Serializer/SerializerContextBuilder.php#L108-L115 It appears that if there is a PATCH operation, `skip_null_values` is set to `true`. Since the ...
André P.
André P.
Read Full Comment
... i process it.( i save it in s3, then save only the s3 path in my db ). Can i force api platform to use the normal fields on read/write from the entity and use only the file property from the FileInput ( and FileInputDataTransformer), since the only time i need the file field is when i save it to s3 and save its properties to db
Thank you! I had a hard time to figure what was wrong with what I was doing. Actually, I didn't need the requestStack, but I needed to add "security_post_denormalize" in my Api Platform Configuration. Not sure I've ...
Jean-tilapin
Jean-tilapin
Read Full Comment