... things:
A) API Platform "stateless" config - prevents session usage on API Platform routes
B) security.yaml "stateless" - tells the security system not to store (or read) a session cookie that contains authentication ...
... values on non-patch operations are treated differently - was likely a mistake by API Platform. In the future, it seems that they want to go in the direction of "all other operations start not including null values". However ...
... /docs.json.
B) This JSON is created just like any other JSON in the system: via a normalizer. Specifically, it is this DocumentationNormalizer - https://github.com/api-platform/core/blob/master/src/Swagger/Serializer ...
... mention in our next tutorial about API Platform.
About the deprecation, that will be fixed in API Platform 2.5 :). It's an annoying issue, and normally that might be backported to the current version (2.4), but there were ...
Hey Toshiro!
Sorry for the slow reply :). Excellent question! As you can see from the API Platform docs, handling uploads in API Platform is really a custom thing. And, to a point, I think the correct implementation ...
... ": "/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 ...
... 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 ...
... ]` 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 ...
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 ...
... 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 ...
... 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 ...
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 ...
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 ...
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 ...
... 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 ...
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 ...
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 ...
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 ...
... 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 ...
1027
API Platform
Filter Results