1026 search results for API Platform

Hey Abdelkarim, Yes, the new minor version of "api-platform/core" causes it to fail. If you downgrade it to "2.4.*" - it will work. So, it sounds like a BC break in 2.5.* but I'm not sure what exactly causes it though. Cheers! ...
Hi, i have lots of properties i need to make immutable but i also need to use the SerializedName() to alter the camelcase that API Platform generates. When i remove the setter the property disappears completey from the POST even though it's still in the group. Any ideas how i can achieve this? Thank you ...
Hey truuslee That's a tricky one, you made me dig but didn't find anything out of the box. In this thread they recommend to create a custom normalizer for such cases. https://github.com/api-platform/core/issues/244 I hope it helps. Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey Startchurch! Hmm, excellent question :). Yes, this is the correct place. Well, of course, anything is subjective - but if you asked Kévin Dunglas, he would agree with using a data persister for this - https://github.com/api-platform/docs/issues/866 Cheers! ...
weaverryan
weaverryan
Read Full Comment
... I'd like to interact with 3rd party services like Stripe. I'd be creating accounts, payment profiles, charges etc. Is Data Persister the best place to put that sort of logic in API Platform? The only other option seems to be events. Thanks for the great tutorials!
Startchurch
Startchurch
Read Full Comment
Hi Tobias I. , Personally, for fields like createdAt and updatedAt I choose to use Doctrine Lifecycle Callbacks: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/events.html#lifecycle-callbacks For author, api-platform already handle it if you give the author IRI to the POST/PUT endpoint. ...
... Hi, I'm very happy about this course. I'm wondering if there is any recommendation which frontend framevork is best (easiest) to use with the Api platform. And I wonder if one particular frontend framevork will be used in the following courses and which one?
Thanks Diego! Sorry, I removed by comment because I didn't see your answer! :/ I managed to find a solution before seeing your comment and it seems that you were right. I posted the whole solution here: https://stackoverflow.com/questions/56793777/how-can-i-use-api-platform-filters-in-yaml Maybe it will help others. ;) ...
Hey Alberto rafael P. At the moment we are focused on the "Messenger" tutorial. It may take one month to start releasing this second part of the Api Platform tutorial. I'm sorry for any inconveniences it may cause to you but there is just too much to cover up :) Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
Hey there, API Platform is really good for making projects quickly, but I've never met (or it's very rare), APIs without the need to make custom endpoints (I think the official documentation is confusing on the subject), do you plan to cover the subject, I'm in chapter 20. Thanks for the great job you do. ...
gabrielmustiere
gabrielmustiere
Read Full Comment
... Hey John, You're totally right, we forgot to show the namespace in the code block, I fixed it in https://github.com/SymfonyCasts/api-platform/commit/5a6ef6b79be089f932448a160815333116a009da - the correct code block will be available very soon on the website. Thank you for reporting it! Cheers!
Hey Lydie, Well, not really, because we're going to cover only translatable behavior from the KnpLabsDoctrineBehaviors bundles. And yes, this tutorial is on the finish stage, most probably we will start releasing it after API Platform course. Thank you for your patience! Cheers! ...
... That's coming soon! I need to fill in after this tutorial with a quick tutorial about Webpack Encore to get it updated, but then I'm right back to making sure we get that API Platform tutorial out as quickly as possible.
weaverryan
weaverryan
Read Full Comment
Hey Mouad E. At the moment we are releasing the "Symfony uploads" tutorial, it's pretty cool, you may enjoy watching it. After that, we are going to release a course about Symfony + API Platform. React Redux is on our scope but just not yet. Cheers! ...
MolloKhan
MolloKhan
Read Full Comment
... //github.com/api-platform/core/blob/d86f95613f7c080e8bb3112c938610d7714192b8/src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php#L279-L283 Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Mario, We do want to release this course, you can see it here: https://knpuniversity.uservoice.com/forums/143666--how-can-we-improve-knpuniversity/suggestions/32271725-https-api-platform-com - but unfortunately we do not have any estimations about its release date yet, sorry. Thanks for your patience! Cheers! ...
79 lines | composer.json
{
// ... lines 2 - 3
"require": {
// ... lines 5 - 7
"api-platform/core": "^2.1",
// ... lines 9 - 16
"symfony/asset": "5.1.*",
"symfony/console": "5.1.*",
"symfony/dotenv": "5.1.*",
"symfony/expression-language": "5.1.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "5.1.*",
"symfony/http-client": "5.1.*",
"symfony/monolog-bundle": "^3.4",
"symfony/security-bundle": "5.1.*",
"symfony/twig-bundle": "5.1.*",
"symfony/validator": "5.1.*",
"symfony/webpack-encore-bundle": "^1.6",
"symfony/yaml": "5.1.*",
// ... line 30
},
// ... lines 32 - 71
"extra": {
"symfony": {
// ... line 74
"require": "5.1.*"
}
}
}
See Code Block in Script
... need to somehow tell API Platform about this value. In normal Symfony I would obtain the value and pass it in constructor, before saving to the database. How can I achieve that here, without hacks? Currently I achieved ...
Robert Z.
Robert Z.
Read Full Comment
... .. which didn't make complete sense anyways. But... I can't explain what's going on! What I DO know is this: A) On a PUT (edit), API Platform queries for your object. This puts it into the "identity map" of Doctrine's ...
weaverryan
weaverryan
Read Full Comment
... Hi, I'm used to working with Symfony to build traditional websites. I have started to learn API platform but I have many questions to ask because I am very confused. Let's take an example of a traditional website to ...