1015 search results for API Platform

Hello! Is it possible to have 2 types of tokens in the same app, in API Platform 3 : - a jwt token for the users: this is a 'user specific' token. A user gets a jwt token from the server after successful ...
I am still having one little issue with that approach, The response is fine, but how do I tell API-Platform to show the correct Schema? I want to show the same Schema, that is auto-generated with every GetCollection ...
TristanoMilano
TristanoMilano
Read Full Comment
... normally be statically defined in every class inside the #[ApiResource] attribute. In your course "API Platform 2 Chapter 27" the system is used to dynamically set the normalization context instead of having to define it ...
... Hey @Auro! > 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? Yes! But not until episode 3 so we can give them proper attention ...
weaverryan
weaverryan
Read Full Comment
... collection system by using its same logic https://github.com/api-platform/core/blob/9b4b58ca0113a2645b58a116fe9e4bf200df8aa3/src/Serializer/AbstractCollectionNormalizer.php#L53 B) At this point, your normalizer should be ...
weaverryan
weaverryan
Read Full Comment
Hey Marko! Weird! The error comes from this class - https://github.com/api-platform/core/blob/main/src/Symfony/Routing/IriConverter.php - unfortunately that exact error wording is used 3 times in that file, so it's ...
weaverryan
weaverryan
Read Full Comment
... this is a more custom source, I haven't done this yet, but you can look at how the ORM pagination works. The process is: A) `CollectionProvider` is the provider used for the ORM: https://github.com/api-platform/core ...
weaverryan
weaverryan
Read Full Comment
**DISCLAIMER** I'm no by no means a pro with api-platform and symfony, so excuse me if I'm incorrect and do correct me if possible. However after spending 3 hours digging through 7 concrete validator classes that ...
... table - where would it live in the hierarchy? I suspect the problem I encountered with paths using slugs might be an API platform bug (or user misuse). It doesn't work as I expect with non-composite keys either. If I ...
... this was not an accident, and it touches on a cool thing with API Platform / Symfony;'s serializer. If you have a `$title` constructor property, then you do NOT need a `setTitle()` method to make it writable. However, if ...
weaverryan
weaverryan
Read Full Comment
... what Api Platform does for its own validation layer: https://github.com/api-platform/core/blob/10827bb570c44cdee2c1bb7a307a8a18df9b4f00/src/Core/Bridge/Symfony/Validator/EventListener/ValidateListener.php#L85-L89 Let me know if that helps! Cheers!
weaverryan
weaverryan
Read Full Comment
... 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