1015 search results for API Platform

... ": "/api/private_cheese/123" and API Platform will not check if i have access to the related resource and saves it anyways. Is it possible to easily implement a check so that api platform checks the security i configured ...
... ]` and you want it to be returned as embedded data in JSON, then you need to use serialization groups to opt into this: https://symfonycasts.com/screencast/api-platform/embedded#embedding-vs-iri-via-normalization-groups ...
weaverryan
weaverryan
Read Full Comment
Hey @Hugues! Hmm, indeed! The `WriteProcessor` stuff is new in API Platform 3.2... and while its addition shouldn't have changed anything, by looking at your debugging, it seems like you're right. If you don't return ...
weaverryan
weaverryan
Read Full Comment
... that it's set right here - https://github.com/api-platform/core/blob/main/src/Symfony/EventListener/DeserializeListener.php#L102-L106 Assuming I'm correct, the question is: why does that listener exit before setting the ...
weaverryan
weaverryan
Read Full Comment
... browser takes me to the API Platform OpenAPI web interface but this curl command returns the ld+json entry I'd expect: The ability to add the .jsonld extension and see that in your browser is kind of a "bonus" feature just ...
weaverryan
weaverryan
Read Full Comment
Hey Ɓukasz Z.! No worries - I think we do talk about this at some point, but it's a very valid question. In short, PUT currently behaves more like PATCH in API Platform: it does NOT behave like the standard suggests ...
weaverryan
weaverryan
Read Full Comment
Hi SymfonyCasts, I am trying to create an RESTful API endpoint by using the API Platform. We have some data which is not persisted inside a database (coming from ElasticSearch though an ItemDataProviderInterface), and ...
... approach https://symfonycasts.com/screencast/api-platform-extending/decorate-provider I know the API Platform docs talk about injecting the "extensions" into your custom data provider - https://api-platform.com/docs/core ...
weaverryan
weaverryan
Read Full Comment
Hey Cesar! Sorry for the slow reply! Unfortunately, I can't offer much specific guidance about Docker & containers (we use Docker a bit locally, but not on production). But I can offer you two things: 1) API Platform ...
weaverryan
weaverryan
Read Full Comment
... For now, I've solved that issue with this technique (I don't use Twig, only Vue with vuex, vue-router and vuetify): https://github.com/api-platform/core/issues/477#issuecomment-588902325 It's quite simple but I still ...
Jean-tilapin
Jean-tilapin
Read Full Comment
Actually, I think my problem is that I have separated the front and back-end (as per API-Platform recommendations) so that they're currently on different ports of localhost - my thinking being that in production I can ...
... preUpdate, preFlush etc, but then why use these events and not the api platform events for example? Ah, so there IS a subtle difference here. API Platform events would only cause these properties to be set when being ...
weaverryan
weaverryan
Read Full Comment
User API the Serializer

... much about how the Symfony serializer works - we talk a lot about it in our API Platform tutorials. But let's at least get some basics. By default, the serializer will serialize any public property or any property that ...

5:37
stateOptions entityClass Magic

... Doctrine ORM - is one of those cases. It grabs the entityClass from stateOptions if there is one... then uses that when it does the query. In fact, as soon as we have this stateOptions + entityClass thing, API Platform sets ...

10:07
... I'm working through the API Platform tutorials and have a solid start to an API. Your API tutorials are great! Now I want to call the API I built from my Symfony web app directly. So say I have a resource with a route ...
... I'm running this on debian 9.9 with symfony cli v4.5.5. I'll just use http in the meantime and wait for a fix. If your're interested, here's the full error when running `npx @api-platform/client-generator https ...
chaosweaver
chaosweaver
Read Full Comment
... it's from my own course. This level of API Platform is very deep :). > Nevertheless im not shure if the hydra-documentation docs.jsonld is correct (i am not so familliar with it) because the admin-client is still broken ...
weaverryan
weaverryan
Read Full Comment
There is a tip on this in lesson 26 and see the comment https://symfonycasts.com/screencast/api-platform-security/state-processor#comment-30978 As described here https://api-platform.com/docs/core/state-processors ...
Hey @Nuri! I think you're right - it was a (I believe) non-intentional change in API Platform 3.2. I've just added a note for this (I had a note in an earlier chapter already). And you weren't the only one tripping over this :) - https://github.com/SymfonyCasts/api-platform3/issues/43 - I appreciate the reports. Cheers! ...
weaverryan
weaverryan
Read Full Comment
... I changed the "api-platform/core" version in the composer from 3.2.2 to 3.2.0, now the error is gone, https://127.0.0.1:8000/api is loading. But when I try to execute a get request, I still get the response: > Symfony Local Web Server: unable to fetch the response from the backend: unexpected EOF