1026 search results for API Platform

... provider". For example, the ItemDataProvider from Doctrine in this case: https://github.com/api-platform/core/blob/ff3aab5b196709c721960c0bb4f1d52759af737d/src/Bridge/Doctrine/Orm/ItemDataProvider.php#L98 I'd recommend ...
weaverryan
weaverryan
Read Full Comment
... only need a custom encoder, but it's possible you might also need a custom normalizer. In general, this is more of a "Symfony serializer" question than an API Platform question: if you're able to teach the serializer how ...
weaverryan
weaverryan
Read Full Comment
... make custom collection after this I added also custom output DTO and custom data provider. In my custom data provider I'm applying all extensions of api platform in order to not lose basic functionality. After getting ...
... I understand them correctly and don't feel the same about them... I hate magic on y code... Other than that I really like api platform, makes it really quick fast and reliable way of building APIs... I went along ...
Fernando A.
Fernando A.
Read Full Comment
... properties different groups in each entity. If you were using Yaml or XML config for API Platform this wouldn't be a problem, but I don't think that you can mix them (have most config in annotations, and just one property in ...
weaverryan
weaverryan
Read Full Comment
... above return normalizedViolations; } ``` API Platform us following a "spec" with their response... and I think it's just easier to do the normalizing in JS than try to hijack API Platform. Let me know if this helps :). Cheers!
weaverryan
weaverryan
Read Full Comment
Hey erop! Wow :). So, 2.5.5 is where it's introduced. Even these patch releases are pretty big in API Platform, but I don't see anything that jumps out at me - https://github.com/api-platform/core/compare/v2.5.4 ...
weaverryan
weaverryan
Read Full Comment
... platform/core to maybe version 2.5.0 and see if it makes any difference. I can't remember the specifics, but I may have heard about a bug in recent API Platform versions regarding embedded writes. Cheers!
weaverryan
weaverryan
Read Full Comment
... class in Entity/, then API Platform will see it instantly (give it the normal @ApiResource annotation). If you put it in some other directory, then add that path in the config file: https://github.com/symfony/recipes ...
weaverryan
weaverryan
Read Full Comment
... 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
SameSite Cookies CSRF Attacks

Before we go further into API platform, we need to have a quick heart-to-heart about CSRF attacks. This is a complex topic... so I'll try to hit the highlights. If you're consuming your API from JavaScript, you have two ...

8:06