1000 search results

Hey |mention:58721| As |mention:37114| mentioned, ApiPlatform changed how they used to treat PUT operations, we have a little warning note in this chapter https://symfonycasts.com/screencast/api-platform/serializer?playAt=269#adding-a-virtual-textdescription-field
MolloKhan
MolloKhan
Read Full Comment
…PUT operation in `config/packages/api_platform.yaml` I was able to include all operations except PUT under the api_platform default operations settings. For example: ``` api_platform: defaults: operations: - ApiPlatform\Metadata\GetCollection - ApiPlatform\Metadata\Get - ApiPlatform\Metadata\Post - ApiPlatform\Metadata\Patch - ApiPlatform\Metadata\Delete `…
hello I have this error I just installed API with composer **Invalid constructor argument 5 for service "api_platform.error_listener": argument 4 must be defined before. Check your service definition.** Can you help me please ?
Could it be possible there might be a bug in the latest version of API Platform ? Since my last `composer update` on an already existing project (API Platform v3.2.3 and Symfony 6.3.7), I have the same thing happen too. IRIs are…
Clement-D
Clement-D
Read Full Comment
Hey Gamusta, Here's the list of possible arguments for ApiProperty: https://github.com/api-platform/core/blob/main/src/Metadata/ApiProperty.php#L45 - there's `security`, but no `securityMessage`. Cheers!
it was exhausting , but I found it: **api_platform.yml:** ``` mapping: paths: - '%kernel.project_dir%/src/Entity' - '%kernel.project_dir%/lib/SholGeneratr/Entity' ```
Thanks for all these tutorials and for your awesome talk at the Api Platform Conference last week
Hi everyone! I'm currently using the API Platform for my personal project. However, I'm facing an issue. I have three entity relations, which means three levels of embedded relations with normalizationContext groups. The problem is that I can only retrieve data object from…
Carlos-33
Carlos-33
Read Full Comment
Thanks for the answer! Will annotations with api-platform settings work for a graphql?
Hey |mention:21432| We do not cover QraphQL in these videos but ApiPlatform docs are very good, you may want to give it a read https://api-platform.com/docs/core/graphql/ Cheers!
MolloKhan
MolloKhan
Read Full Comment
Does any one know where I can read about how to make API Platform docs load dynamically based on who is logged in? |mention:213| said at the end of the video, "something we're going to tackle in this tutorial"
// ... lines 1 - 6
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
#[AsDecorator('api_platform.doctrine.orm.state.persist_processor')]
class DragonTreasureSetOwnerProcessor implements ProcessorInterface
{
// ... lines 12 - 19
}
See Code Block in Script
// ... lines 1 - 4
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
// ... lines 6 - 7
#[AsDecorator('api_platform.jsonld.normalizer.item')]
class AddOwnerGroupsNormalizer implements NormalizerInterface
{
// ... lines 11 - 25
}
See Code Block in Script
Hey @Yangzhi! Are you using API Platform? Or just creating a RESTful endpoint on your own? Let me know, and I'll see if I can help :). Doing what you want can be less efficient on large collections but, in general, yea, it should be…
weaverryan
weaverryan
Read Full Comment
// ... lines 1 - 6
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
#[AsDecorator('api_platform.doctrine.orm.state.persist_processor')]
class UserHashPasswordStateProcessor implements ProcessorInterface
{
// ... lines 12 - 21
}
See Code Block in Script
Hi! I am working on an API Platform 3 (Symfony 6) app. In my JSON response, I have the following : { ... "totalItems": 7065, "itemsPerPage": 10, ... } Is it possible to change the config (or do something else) so that I get : { ... "total_items": 7065, "page_size": 10…
…I just jumped into API Platform and it's pretty confusing to me. I am planning to go through the API Platform 2 first since it has the security related content. Is it okay or shall I just wait for API Platform 3 and start…
Hi DustinUtecht, here is repository with current versions Symfony 6.1 and API-Platform 3.0 It should work also fine. [https://gitlab.com/symfony-grabasch/symfonycast/dataprocessor](https://gitlab.com/symfony-grabasch/symfonycast/dataprocessor) Maybe it helps. I want to add the repository link…
The way I see it, in Api Platform 3 you are supposed to use StateProvider, implementing ProviderInterface. See [https://api-platform.com/docs/core/state-providers/](https://api-platform.com/docs/core/state-providers/) for more. As I am trying to learn things myself, this…
Thanks anyways. I will report this to API-Platform. Unfortunately, there I will fall into the downside of this otherwise great tool. The responsiveness of the team to the issues posted on Github is simply glacial. I had issues linger there for 2 years or…
Bernard A.
Bernard A.
Read Full Comment