1000 search results

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. > The @id…
weaverryan
weaverryan
Read Full Comment
…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 not clear exactly which "bad path" you're hitting…
weaverryan
weaverryan
Read Full Comment
Hey @Mepcuk! Oh, that's an excellent question / point. Yes, check out https://api-platform.com/docs/core/push-relations/ - let me know if that's what you're looking for. Cheers!
weaverryan
weaverryan
Read Full Comment
…chapter you are talking about the DTO solution, are you going to do a course to explain how it works in Api Platform v3? I've always used them in v2, to separate the Entities from the Api. But in v3 I encounter a problem…
Hy Ryan, sorry for the late answer. I'm working on a project with multiple Microservices which are based on Symfony 5.4 and Api-platform 2.7. These will have to be upgraded to Symfony6 and Apip3 sooner or later. In my opinion better…
Hey Chtioui, You may find some deprecations along the way but in general all of the concepts are still relevant. Oh, by the way, we just released a new tutorial about APIPlatform 3 https://symfonycasts.com/screencast/api-platform Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey Marko, I couldn't find any config to change those field names in the documentation. So, what I think you could do is create an event listener and override those fields directly on the response data. https://api-platform.com/docs/core/events/ Cheers!
MolloKhan
MolloKhan
Read Full Comment
…detailed setup like .yaml) and use, but there is a lack of real example usage. On Api Platform website is example of chat, but lack of repo on GitHub to check code to see how it works. There is only one YT tutorial that is…
kyotomano
kyotomano
Read Full Comment
… I wasn't planning on it... at least not in any big way. But is that something you're interested with in regards to API Platform? What are you hoping to use it for? > When are you going to release all 3 parts (I…
weaverryan
weaverryan
Read Full Comment
Thank you very much, Ryan - the guide fell from heaven! A few days ago I was just watching the previous version of the guide to the API Platform but with symfony 6.2 it worked quite averagely! I'm waiting for the next episodes! :)
Pawel_Liszka
Pawel_Liszka
Read Full Comment
…and these harder API Platform questions usually wait for me. Hmm, what you're describing sounds an awful lot like GraphQL. And, though I haven't used it personally, API Platform *does* also expose a GraphQL API - https://api-platform.com/docs/core/graphql/ - perhaps…
weaverryan
weaverryan
Read Full Comment
…He use symfony v6.0 and api Platform v2.7 because it seems that api platform 3.0 is not available for symfony 6.0. My code in my first message is for the current symfony version 6.1. If you want I can create…
…for the slow reply - holidays! To be honest, I'm not sure yet. I'm going to be working on the API Platform 3 tutorial over the next few weeks, and 2.7 and 3.0 are, I believe, effectively identical from a feature point…
weaverryan
weaverryan
Read Full Comment
…this - VERY awesome of you :). We're going to be hard at work in December updating the tutorials for API Platform 3. However, I talked with the API Platform lead dev last week and he assured me that, because we taught everything "the right way…
weaverryan
weaverryan
Read Full Comment
… Updating the tutorials for API Platform 3 is my December project right after SymfonyCon :). But yes, I believe you are correct. In fact, if you try to go to https://api-platform.com/docs/core/data-providers/ it redirects you to the page about state…
weaverryan
weaverryan
Read Full Comment
…Yes, the `UuidInterface` type should make it so that this denormalizer - https://github.com/api-platform/core/blob/2.7/src/RamseyUuid/Serializer/UuidDenormalizer.php - is called to convert the string into a Uuid. I'd try adding some debug code directly to this method…
weaverryan
weaverryan
Read Full Comment
…change* its metadata to set it as an identifier / not an identifier. Looking at one of the core decorators might help: https://github.com/api-platform/core/blob/2.7/src/Metadata/Property/Factory/AttributePropertyMetadataFactory.php So, doable - but not in a super simple way. …
weaverryan
weaverryan
Read Full Comment
…switch interface and yeet" kind of update. I think so too! > Are there any plans to update this course to news inside API Platform? Yup :). It's high on my list to get a new series re-recorded using fresh API Platform 3! Cheers…
weaverryan
weaverryan
Read Full Comment
…issue! To fix it, change the path to `/cheese/{id}.{_format}`. By default, THIS is how Api Platform creates routes - you can see it if you run `bin/console debug:router`. So if you override the path, it becomes your responsibility to add this. It…
weaverryan
weaverryan
Read Full Comment
…id}'] ], shortName: 'cheeses' )] ``` And i go to the url : /api/cheese/1.json i don't have the json format on screen, its the API Platform html screen. But if i don't define a custom path i have the json format on screen. I…