1015 search results for API Platform

Hey Stefan T.! Yea... I kind of agree. I recently opened an issue on API Platform where I recommended adding something that would look more like `access_control="ROLE_USER"`, but I'm not sure if it will go anywhere ...
weaverryan
weaverryan
Read Full Comment
Are you guys also planning on doing a course on Vue.js since some newer courses like Messenger or API Platform Security have their frontend built on it? I would love to build a single page app but it seems so hard to ...
Tobias I.
Tobias I.
Read Full Comment
I am new to API Platform and Symfony framework, so I have lots of questions. :) Until the end of the tutorial, there is no updates in repository files, such as CheeseListingRepository.php. I think it is auto-generated ...
... \CheeseListin !! g" in . (which is being imported from "/Volumes/SanDisk/Documents/code/symf !! ony/api-platform/config/routes/api_platform.yaml"). Make sure there is a lo !! ader supporting the "api_platform ...
... validation check that the API client does or doesn't have permission to update this user. This is not exactly the same, but it's related and can maybe offer some inspiration: https://symfonycasts.com/screencast/api-platform-extending/simpler-validator Let me know if you have any luck, I'd love to know! Cheers!
weaverryan
weaverryan
Read Full Comment
... I've upgraded the tutorial project to Symfony 6.4 and api-platform 3.2 including all recipes... And I was fighting hard to get the same result as the tutorial. Apparently. If you have a property `isOwnedBy ...
Joris-Mak
Joris-Mak
Read Full Comment
In combination with API-Platform it is explained here: https://api-platform.com/docs/core/performance/#eager-loading. There are multiple ways. But I don't see an example for fetching an embedded relation one time ...
... ":"\/api\/contexts\/User","@id":"\/api\/users\/1","@type":"User","phoneNumber":null,"isMe":true}; ``` Do you see `@context` in your result? It seems like your User object is being serialized almost outside/without API ...
weaverryan
weaverryan
Read Full Comment
... ONLY when the URL has `newQuery=true`? If so, that might be done with a context builder - https://symfonycasts.com/screencast/api-platform-security/context-builder - if the query param exists, then add a new group that the field is in. Or do you want something different? Cheers!
weaverryan
weaverryan
Read Full Comment
... 4 different times (for the 4 different steps of information) seems weird to me. (B) Another way to look at this process is that it's a workflow... and you can do some *really* interesting things with API Platform and ...
weaverryan
weaverryan
Read Full Comment
Hey! Attributes are great! But I have a question. I heard that you can use functions inside attributes uses for repetitive things. I am thinking of a specific use case on API Platform for example (but this applies ...
... - is probably to use a Doctrine listener - like we do here - https://symfonycasts.com/screencast/api-platform-extending/post-load-listener. Other solutions involve adding a listener - https://symfonycasts.com/screencast/api ...
weaverryan
weaverryan
Read Full Comment
... ``` Call to a member function is() on null ... if ($user->is(Utente::ROLE_ADMIN)) { ``` That is correct cause there is no user BUT ... should API platform stop my request BEFORE the Extension be applied? If I perform ...
Gianluca-F
Gianluca-F
Read Full Comment
I had always problems to start chapter 2 of api platform tutorial because of issues during instalation of this project. Now i using a 8.1 version of php on Ubuntu and after read all comments i think the simplest ...
kkedzierski
kkedzierski
Read Full Comment
404 On Unpublished Items

... fix this? Well... just like how there's a QueryCollectionExtensionInterface for the collection endpoint, there's also a QueryItemExtensionInterface that's used whenever API Platform queries for a single item. You can ...

8:00
Serialization Tricks

... few minutes. The point is: the serializer was able to create our object. Next: To help us while we're developing, let's add a rich set of data fixtures. Then we'll play with a great feature that API Platform gives us for free: pagination

5:15
Pagination Context

... parameter directly because API Platform already has this info! Where? It's hiding in a service called Pagination: a service that we can autowire. Add a second argument to DailyStatsProvider: Pagination - the one from ...

7:09
Cart API Data

... current user's session. By the way, the cart data itself is also stored in the session instead of the database. That fact is completely not important for us in Vue. I just mention it in case you're an API Platform geek ...

5:58
... thinking about creating a new entity with customer ids and brand ids together in a 'cross' table. But i hope there is a better way? Hmm. Ideally we can avoid adding duplication to our database to make API Platform happy ...
weaverryan
weaverryan
Read Full Comment
Blog
2023 A Year in Tutorials Open Source

... surprisingly LAST Stack and API Platform episode 3 are 6th and 8th. How long does it take to make a tutorial? Great question! The biggest variance depends on research. Yup, sometimes I have a lot to learn before hitting ...