1026 search results for API Platform

Does it really make sense to set up decoration for the UserHashPasswordProcessor via #[AsDecorator()]? As I understand it the decorating service is then involved in every call of the PersistProcessor? In the API ...
Hi! I am working on an API Platform 3 (Symfony 6) app. In my JSON response, I have the following : { ... "totalItems": 7065, "itemsPerPage": 10, ... } Is it possible to change the config (or do something ...
Hi! Is this course going to be divided into 3 parts just like api platform 2? [base, security, custom resources]. I also have more questions. Are you going to cover Mercure? When are you going to release all 3 parts (I ...
kyotomano
kyotomano
Read Full Comment
... verb from the operation method (the operation name is not really usable unless you play with regex), also changed method name of the helper to align with the API Platform naming convention. ```
Hey Nikrou, I did used api-platform 3.0.4 and Symfony 6.1. And just in this moment I tested with symfony 6.0 and 2.7. Is does work very well. in which step is your plainPassword empty? Because in the end of the ...
... mean it responses with code 201 instead of 401. I'm confused, maybe because I'm a begginer. I'm using Symfony 4.4 and API Platform 2.7. I don't know what should I do to make security working. I would be grateful if someone could help me. Jakub
Hey Szabolcs! Ah, that's a shame! I'm guessing there is a way to work around that, but your solution is fine of course - thanks for sharing! > I really really recommend to avoid this easy-admin-bundle and use api ...
weaverryan
weaverryan
Read Full Comment
... code only works with PHP 7.*). If you're hitting specific problems, let us know and we'll do our best to help debug :). We will probably update these course soon anyways, as API Platform v3 will be released soon. Cheers!
weaverryan
weaverryan
Read Full Comment
... subscriber? The "serialization" context? Try getting it via `$request->attributes->get('_api_normalization_context')` - that is set in an earlier listener - https://github.com/api-platform/core/blob/fc72dff03c5a6d78609dbe18cf2c7e11a1657d46/src/EventListener/SerializeListener.php#L93 Let me know if that helps! Cheers!!
weaverryan
weaverryan
Read Full Comment
Hey Tac-Tacelosky ! API Platform 3 should come out sometime this summer - we're waiting on that before we give the tutorials a facelift for newer php and symfony version. I know, it's not ideal until then :). About ...
weaverryan
weaverryan
Read Full Comment
Hey Raul M.! Yea, this gets tricky :). The key is serialization groups. We talk about it here: https://symfonycasts.com/screencast/api-platform/embedded So the key should be to add the `datos_personales:read` to your ...
weaverryan
weaverryan
Read Full Comment
Hey M_Holstein! > $validatorBuilder = new ValidatorBuilder(); Hmm, you have this code? Are you using the the Symfony Framework or API Platform in a custom application (with no framework)? I'm asking because, in the ...
weaverryan
weaverryan
Read Full Comment
... a headless Node CMS, Api Platform, etc - it's a lot. It totally might be necessary - but if you can start simpler, that's always a good choice. Good luck!
weaverryan
weaverryan
Read Full Comment
weaverryan , thank you for the reply, I thought a lot about this, and my conclusion is that my case is not a proper way of using the API Platform and REST itself. I think we shouldn't modify the child collection results ...
Hi there, and thanks for the super tutorials series ! Btw, does anybody knows if there's been a change with symfony 5.2 + api platform 2.6.2 ? Because even though I *did* add the logout path in security.yaml and added ...
Lorenzo M.
Lorenzo M.
Read Full Comment
Hey Sjoerd! Thanks for the note - sometimes we DO miss things like this :). We don't actually show the setup in the tutorial, but in the first chapter - https://symfonycasts.com/screencast/api-platform-extending/setup ...
weaverryan
weaverryan
Read Full Comment
Hey Victor, thank you! But where could I call this method? Because in anywhere I'm calling the create() method. It's part of the configuration. I couldn't find in the Api Platform docs where to change this. I searched ...
... page) but forgot to mention & remove it in the video. Basically, API Platform does *not* register any auto-configuration rules for `SerializerContextBuilderInterface`... and so the autoconfigure: false is meaningless. Iirc, I asked @dunglas about this to verify and he agreed. Cheers!
weaverryan
weaverryan
Read Full Comment
Running into an issue with api-platform 2.5 and phpunit. `composer require test --dev` Updated phpunit.xml.dist to SYMFONY_PHPUNIT_VERSION=8.2 and created a file in tests/Functional/MyResrouceTest.php Ran "php bin ...
... implementation. And that reading and filtering process sounds very clear and easy but for writing and persisting thats another issue - I guess. Are there ressources how to get the ElasticSearch entites into the Database with Api-Platform?
Braunstetter
Braunstetter
Read Full Comment