... 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 ...
... 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 ...
I did find an issue with `composer require api` when following along with the code provided by this course. A new `phpstan/phpdoc-parser` 2.0 was being installed but the api-platform version used in this course (3.2) didn't support it.
I've fixed this problem so it now should install without issue. ...
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! ...
... 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
Hey |mention:50107|
In our recent ApiPlatform 3 tutorial we do not talk too much about customizing the docs but I think this video may help you out https://symfonycasts.com/screencast/api-platform-security/open-api-decoration
You can also check the ApiPlatform docs
Cheers! ...
Hey Patrick!
I'm actually not sure myself - sorry I can't be of more assistance! Updating the tutorials for API Platform 3 is my December project right after SymfonyCon :). But yes, I believe you are correct. In fact ...
... be more than just a "switch interface and yeet" kind of update.
Are there any plans to update this course to news inside API Platform?
Hi there,
I am implementing a custom controller with a custom action following the Api Platform Documentation (https://api-platform.com/docs/core/pagination/#custom-controller-action) for the pagination but the ...
OK. I got it! Thanks!
What's the best practice? Call manually every time before a "persist"?
Or can this be done automatically (e.g. via lifecycle callbacks)? But then a API call would be validated twice (by Doctrine and API Platform, right?). ...
... I've set up the project using Symfony 5.2.5 and API Platform 2.6.3.
When I try to access "http://localhost:8000/api" I am presented an Exception telling me "Unable to generate a URL for the named route "api_doc" as such route does not exist."
Is there anything I can do to get the thing to work?
Thanks in advance.
... chapter where Ryan talks about making secure your API https://symfonycasts.com/screencast/api-platform-security/samesite-csrf
Cheers!
Hey infete
This course is totally focused on API Platform, so it won't cover how to develop an API in a TDD way. If you are interested in TDD, we have some courses about it (PHPSpec, PHPUnit, Behat), https://symfonycasts.com/tracks/testing
Cheers! ...
Hey Kaizoku
You can watch our courses about REST API's, it will help you understanding how to develop your own API, how to test it, and some best practices, but we do not talk about "API Platform" on those courses.
Cheers! ...
Auto Setting the owner
...
going kaboom when it hits the database. Yup!
So: how can we automatically set this field when it's not sent? In the previous
API Platform 2 tutorial, I did this with an entity listener, which is a fine solution.
But in ...
Diving into the Normalizer Internals
... that this isn't quite working like we want:
each User record is missing the JSON-LD fields. The embedded cheeseListings
data has them... but each user does not.
What's going on?
When you work with API Platform, the ...
Hallo everyone,
for people, they do this tutorial with symfony 6 and API-Platform version 3. If I am right, the "Data Persister" is changed to "Processor" and the code is a little bit different. You can see the ...
... example, that's what I know. Actually, you can find the list of popular projects on their home page: https://api-platform.com/ - search for "They use API Platform".
Good luck with learning your next course about ApiPlatform!
Cheers!
... *and* also if you start using GraphQL with API Platform. The PRE_WRITE event, however, is specific to the REST API. So, the data persister is a bit more powerful because it's used in more places :).
Cheers!
1027
API Platform
Filter Results