1000 search results

…switch interface and yeet" kind of update. I think so too! > Are there any plans to update this course to news inside API Platform? Yup :). It's high on my list to get a new series re-recorded using fresh API Platform 3! Cheers…
weaverryan
weaverryan
Read Full Comment
…issue! To fix it, change the path to `/cheese/{id}.{_format}`. By default, THIS is how Api Platform creates routes - you can see it if you run `bin/console debug:router`. So if you override the path, it becomes your responsibility to add this. It…
weaverryan
weaverryan
Read Full Comment
…id}'] ], shortName: 'cheeses' )] ``` And i go to the url : /api/cheese/1.json i don't have the json format on screen, its the API Platform html screen. But if i don't define a custom path i have the json format on screen. I…
I reply very late, but maybe that can be useful for other members. This error is because you modify the wrong files. the right file is in the folder `config/packages/api_platform.yaml` (not `config/routes/...`)
API Platform docs: https://api-platform.com/docs/v2.1/core/jwt/#jwt-authentication However, I want to replace the local username / password authentication with a call to AWS Cognito AND include some of the Cognito response fields in the JWT returned by the API
Hello Ryan Thanks for your help! Will give it a try. Also found the following params which I will test: ``` when@prod: api_platform: enable_docs: false enable_entrypoint: false ``` Have a nice day Ninsky
Hey Richad-H! It's planned! Work hasn't started yet, but this is a high priority for me - time to update this for API Platform 3! Cheers!
weaverryan
weaverryan
Read Full Comment
…to mind is that the API Platform interface is setting an `Accept` header on the request - iirc it's `application/ld+json`. However, I don't think that would make a difference in how the items are filtered... and I think API Platform (via axios)…
weaverryan
weaverryan
Read Full Comment
…some more specifics too. We will, soon, start releasing new courses for API Platform 3 (which was just released). When we do that, we will take a look at all the possible topics and cover what we think is most important. So if you'd…
weaverryan
weaverryan
Read Full Comment
Hey Drutpro! Thank you for your feedback! Yes, we definitely want to release more courses about API Platform, this is a great tool with huge capabilities. Unfortunately, I'm not sure when it might be released, for now we're working on many other topics…
Yes, this is so bad. I have to create a separate file that will contain a multitude of constants representing the configurations of my API Platform custom actions. It works, but... It would be interesting if in a future PHP update we could use functions…
…the API Platform configuration of the Post entity is less readable and it would be necessary to move for example the entire value of the "count" key somewhere, in a private function, or even in an "api_doc" class which would contain functions with the…
Hi! Going through this tutorial right now, but with the new versions like php 8.1, api platform 2.6 and noticed that I have the same code like you do, but there is no description field, seems like normalization groups are not working properly...
…2 - https://symfonycasts.com/screencast/api-platform-security/tokens-cookies - though I don't have a lot of direct experience with strategies that do *not* use session storage. In some sense, it's super easy: you could create an "api token" system - this tutorial is…
weaverryan
weaverryan
Read Full Comment
…http://127.0.0.1:8000/companies/id/1.jsonld in my web 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…
weaverryan
weaverryan
Read Full Comment
Could you provide a MongoDB example as well? Trying so far with: ``` App\DataProvider\TestDataProvider: arguments: $collectionExtensions: !tagged api_platform.doctrine_mongodb.odm.aggregation_extension.collection ``` /** * {@inheritdoc} */ public function getCollection(string $resourceClass, string $operationName = null, array $context = []): iterable { $queryBuilder = $this->testRepository->getAggregatedQueryBuilder…
…only work for a REST API, but not Graphql. If you're only using the REST API, there is probably not much difference :). In fact, the data persister system is called FROM a listener - WriteListener - https://github.com/api-platform/core/blob/2.6/src…
weaverryan
weaverryan
Read Full Comment
…currently behaves more like PATCH in API Platform: it does NOT behave like the standard suggests (in other words, it is NOT a replace in API Platform like the HTTP spec says it should be). On this page - https://api-platform.com/docs/core/operations/…
weaverryan
weaverryan
Read Full Comment
Hello GianlucaF If I understood you correctly, then you can do it with context builder. You will find it in the security part of ApiPlatform series PS fast link https://symfonycasts.com/screencast/api-platform-security/context-builder StayTuned! Cheers!
Hi Alex T.! I think I understand! I believe what you are asking about is covered in this section - https://symfonycasts.com/screencast/api-platform-security/validator-logic - and the answer is "do this with a validator". This gets a bit tricky. I should not…
weaverryan
weaverryan
Read Full Comment