... //gist.github.com/bastien70/5d910368500f2ad56a8e4e81f57312a7
Do you know where the problem can come from?
When in doubt, I cleared the cache, but nothing changes
I'm using Symfony 5.2.9 and API Platform 2.5
... only read them in GROUP_B. In the Future there might be the possibility to share data between some but not all groups. My App seemd so easy to me but i have the feeling i need everything API platform has to offer 😂 Also ...
... situation, the "number" and "leg" part are lowercase. That could be causing API Platform to think that these field should literally be sent as "clientvo_number" in the JSON instead of "clientvonumber".
Let me know if this helps :).
Cheers!
... Hey Miky!
It's an excellent question actually :). API Platform itself runs *fine* on PHP 8. But at the time we created *this* tutorial, PHP 8 wasn't released yet. And so, some of the dependencies in our composer.lock ...
Hi,
first of all, thanks a lot for your invaluable screencasts.
I read the other comments and i'am facing the same issue with cookie problems for my frontend. To explain:
With this setup : Docker + Traefik + Api ...
... POST collection operation, we explicitly set its security - you can see it in this code block - https://symfonycasts.com/screencast/api-platform-security/previous-object#codeblock-a4c57775cb - does your operation have this? Let me know - it's the first place I would look :).
Cheers!
... through the @ApiProperty
annotation. Something like embedded=false that I can retrieve in the context later. I saw that it has openapiContext & jsonldContext attributes but I didn't find information on how api-platform use ...
... - we'll talk about them later in the tutorial). Here is one of the bugs we discovered - and work around later in the tutorial - https://github.com/api-platform/core/pull/3696
But we work around this by adding ...
... ProductNormalizer in your code, which is why you weren't seeing the field!
On an API Platform-level, both using Groups or a custom normalizer are valid way to expose a field (the Groups way is the more official way). I used a custom normalizer so that I could use a service to help generate the "image" value.
Cheers!
... the place that looks for the `@id` is this: https://github.com/api-platform/core/blob/ce06420868afb289676478450a3e76569dc20a02/src/JsonLd/Serializer/ItemNormalizer.php#L109-L118
The key during the deserialization ...
... wrong. Have you tried this before? You may need to tweak some "eager loading" settings - you can see that here: https://github.com/api-platform/core/issues/1910
Cheers! ...
... even has (via a simple trait, similar to Alice) a way to initialize and reset the database between tests. I'm not familiar with the issue of Alice being incompatible with api-platform 2.5.7 - I dumped it because Foundry is ...
Hey Vladislav T.!
> I watched the first and half of the second courses. I am very excited about API Platform features.
Yaaay!
> But I am concerned about the ability to create custom endpoints.
This is one of the big ...
... /api-platform/core/src/Bridge/Symfony/Bundle/Test/ApiTestCase.php:62
/var/www/html/tests/Functional/CheeseListingResourceTest.php:16
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
I checked the framework.yaml and the test variable is true
Could you help me to resolve it?
Thanks a lot
... create a API Platform custom filter. Then, assuming you're using a database with a proper JSON type (like pgsql or MySQL 5.7 or higher), you would need to do a bit more work to query for the item via Doctrine. Basically ...
... with no luck.
B) The oldest "api-platform/core" version I managed to downgrade to was 2.5.2: 2.5.0 requires Symfony ^4.0, 2.5.1 raised an error connected to ExceptionListener from Symfony HttpKernel package. And ta-da-am ...
Hey Александр Ш. !
Ok, I just checked our code using API Platform 2.5 to be sure. And, it *does* work... meaning, it *should* work for you... and I'm not sure why it doesn't. However, with a little bit of debugging, we ...
... \NotAcceptableHttpException: "The content-type "application/x-www-form-urlencoded" is not supported. Supported MIME types are "application/ld+json", "application/json", "text/csv", "application/hal+json"." at /application/vendor/api ...
... enough - it's still a pretty "simple matching" search. If you need a more robust search or a more performant search, the proper solution is to use ElasticSearch and the ElasticSearch integration with API Platform. That's ...
... tutorials are to advanced for me, at this moment. I don't even know why or when to use API-platform and/or Messenger so for the last two or three months I have lost interest in Symfonycasts. I am, however, eagerly ...
1015
API Platform
Filter Results