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!
…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)…
…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…
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…
…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…
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…
…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/…
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…
…disableReboot()` on the client. Otherwise I get this error on my second request (the first request is the login request): "Cannot set session ID after the session has started." I use Symfony 4.4 and API Platform 2.6.8. Any idea why this is…
…Benoit L.!
Sorry for the slow reply!
> [Web Server ] [26-Mar-2022 19:32:57 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\api-platform\start/vendor/autoload.php'
Hmm. This looks like you should run `composer install`. Did you run…
…s really a pain to do this on Disqus.
`
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "/Users/bernardo/Sites/tutorials/code-api-platform-extending/start/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php",
"line": 112,
"args": []
},
`
Also I noticed that later ( Chapter 11…
x
1000+