1026 search results for API Platform

... bundle? Or when using this trait? Btw, the course code for this tutorial *is* now old - we'll update the tutorials soon for API Platform 3. Also, in newer projects, instead of Alice, we use Foundry for data fixtures and for resetting the database between tests - https://github.com/zenstruck/foundry Cheers!
weaverryan
weaverryan
Read Full Comment
Ah, cool - thanks Tac! About the tests... yes, that's very possible. You could (if you want to) delete that src/ApiPlatform directory entirely, then update a few use statements around the app to point to the REAL API ...
weaverryan
weaverryan
Read Full Comment
... annotations will be deprecated in favor of them. So... my best recommendation would be to leave them and get used to looking at them :). They looked weird to me after first, but I've grown to really like them. You can also use attributes for the API Platform stuff too (which you probably guess by the `#[ApiResource]`. Cheers!
weaverryan
weaverryan
Read Full Comment
... 32:57 |ERROR | SERVER GET (500) / ip="127.0.0.1". I see this message in the log as well : [Web Server ] [26-Mar-2022 19:32:57 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\api-platform\start ...
... /screencast/api-platform-extending/apply-filter#codeblock-10bf80c57d. So then - unless I'm forgetting a detail - since it needs to nullable either way, it comes down to a pure preference. The setter is a bit more expressive than ...
weaverryan
weaverryan
Read Full Comment
... operation, API Platform/Doctrine queries the database for your User. That User object will have `null` for its `plainPassword` property, since that is not a persisted property. Then, something (I'm not sure exactly what ...
weaverryan
weaverryan
Read Full Comment
Automated clients interacting via API Platform for which a shared login is not desired. Don't really want to have a username/password stored on devices that would need to be updated. Clients would be manually ingested ...
Hi there, It may not the right chapter to ask this, but I have a small issue with API Platform Security: when I login, i get back the right infos from my entity thanks to the useful groups ("@groups({"user:self ...
Jean-tilapin
Jean-tilapin
Read Full Comment
Hi, amazing screencast, thanks! I encounter some issues with API-Platform v2.6. Cookies were never send in response to login request. I discovered that the config framework.yaml file had no more session configuration by ...
Jeremy Pasco
Jeremy Pasco
Read Full Comment
Hey, everyone! It seems that, at least in API Platform 2.6.5, adding `@ApiResource()` is not enough, since it requires to explicitly mark the identifier for the resource. So, you'll get an error like this: `No ...
André P.
André P.
Read Full Comment
... "Use ApiPlatform" I do not get suggestion and I wonder if you have any suggestion. I do have apiPlatoform up and running as I can hi the swagger page and this is what I have in my composer.json "api-platform/core": "^2.6", Any idea? thanks, Alessandro
Alessandro-D
Alessandro-D
Read Full Comment
... Hi Kiuega! I'm happy to hear you liked ApiPlatform Admin! Yeah, it's on our TODO to show it in a course. I'm not sure if it will be included in ep4 of Api Platform series or in another separate course, we don't have ...
Love API-Platform, using it as much as possible now. I also use the Symfony proxy, to make my domains easier to work with (symfony proxy:domain:add my-project, then use https://my-project.wip). Can you suggest how to ...
Tac-Tacelosky
Tac-Tacelosky
Read Full Comment
... the file, i need to transform it into the absolute path No problem :). Add one (or some) non-persisted fields and use a custom data provider to supply those :). We talk about this a bit earlier in the tutorial - https://symfonycasts.com/screencast/api-platform-extending/data-provider Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Aaron! Hmm. Is your frontend and backend on different domains? The Location header is set by our code when we log in - https://github.com/SymfonyCasts/api-platform/blob/export-cache-bug/src/Controller ...
weaverryan
weaverryan
Read Full Comment
... user's device process the regular collection it gets from the "GET" method, but API Platform should be able to do that more efficiently, right? Through a controller with a specific route, generating my GeoJson "manually ...
Jean-tilapin
Jean-tilapin
Read Full Comment
... mind that the system works (and I'm almost positive this is true with GraphQL) by calling getter, setter, adder and remover methods on your object. So if you can get API Platform to call the right method... and that method does it's job, it "should" work. But... this is a very high level answer. Sorry I can't do better! Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Sridhar, This is the 2nd tutorial, we created that User entity in the 1st one, exactly here: https://symfonycasts.com/screencast/api-platform/user-entity . We based the code of this tutorial on the finish code of ...
Hi, I think there is some kind of bug in swagger-ui or api platform. The schema "cheeses:jsonld-write" does not show that there is an owner property on cheeses. The thing is the owner property actually exists and works ...
Daniel W.
Daniel W.
Read Full Comment
... /Kescht/kescht/vendor/api-platform/core/src/Security/ResourceAccessChecker.php` line 52. The token seems to be missing. But is there a token for a not authenticated user?
Fränz F.
Fränz F.
Read Full Comment