1000 search results

41 lines | config/services.yaml
// ... lines 1 - 8
services:
// ... lines 10 - 33
App\ApiPlatform\AutoGroupResourceMetadataFactory:
// ... line 35
# causes this to decorate around the cached factory so that
# our service is never cached (which, of course, can have performance
# implications!
decoration_priority: -20
// ... lines 40 - 41
See Code Block in Script
How can I get apiPlatform working on an entity in a different namespace? I updated the autoloaded in composer.json and doctrine.yaml ``` mappings: App: is_bundle: false dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: App VisFour\SholGeneratr\Entity: is_bundle: false…
I have an API (ApiPlatform and React Js), when I use axios to register a product I get the error: hydra: description: " @context: "/api/contexts/Error" @type: "hydra:Error" hydra:description: "Invalid IRI \"111\"." hydra:title: "An error occurred" " while the same url works very…
Nyenyemere Barry
Nyenyemere Barry
Read Full Comment
Hi, Today current version of API Platform is 4.1. This have big difference between 3.x ? Thank you.
This is a very interesting API Platform, I am interested in learning these lessons to take advantage of all these resources have to offer>~Lax
Mitchell-O
Mitchell-O
Read Full Comment
…php line 103: Could not find package "api-platform/graphql" in your project depends [-r|--recursive] [-t|--tree] [--locked] [--] ``` I try to delete entire content of the `vendor` directory and re-run `composer install` After that i try to run `composer why api-platform/graphql`…
skocdopolet
skocdopolet
Read Full Comment
If you run `composer why api-platform/graphql` does it say "package not found"? Can you double-check the paths of your resources, I find them a bit weird `./path/to/domAnimations` and `/Users/path/to/project/vendor/apiplatform/symfony/Bundle/Resources/public/graphiql/graphiql…
MolloKhan
MolloKhan
Read Full Comment
just one the first page of api platform ;) https://api-platform.com/ "the easiest way to create your web API"
> `composer require api` is no longer official install for using API Platform 4 Hey |mention:86482|! Could you show where you are seeing this? All the official docs show `composer require api` but I see you mention this may not be correct.
…install of previous package version than 'api' recipe. Because follow official process of THIS COURSE at THIS TIME no longer run correctly. I try lot of think in any direction and nothing run. I just use '`composer require api-platform/core`' in empty Symfony project…
it is the latest version: "api-platform/core": "3.3.2".
I think that the React Admin from api-platform/admin is based on HydraAdmin (correct me if im wrong). I tested both because i wanted to know if the base of it makes the problem or api-platform/admin itself :) If someone wants a (temporary…
Sebastian
Sebastian
Read Full Comment
…latest version of API Platform (3.2) it looks like Virtual Properties don't seem to work correctly when creating embedded objects. I've added group "user:write" to the "name" and "value" properties in DragonTreasure and they show up in the API Docs correctly…
Oh it's looks like api platform known error https://github.com/api-platform/core/issues/4293 Adding PatchAwareItemNormalizer seems to fix the problem. Thanks for answer :)
Maybe something has been changed in API Platform with updates, since this video was recorded. I've tried, and `securitySchemes` hasn't been overridden. ``` $securitySchemes = $openApi->getComponents()->getSecuritySchemes() ?: new \ArrayObject(); $securitySchemes['access_token'] = new SecurityScheme( type: 'http', scheme: 'bearer', ); ``` After some workaround I…
…3239 After some digging, I found that api-platform only handles the exception if it's a route managed by the framework, in my case I was throwing the exception from a custom controller. So, try adding either a $request->attributes->set( '_api_respond', true)…
…I watched the API Platform 2 course. I plan to watch this one but for now I did not find the time to do it. I still searched if there was the same course "[Automatic Serialization Groups](https://symfonycasts.com/screencast/api-platform2-security/auto…
Aurelien-A
Aurelien-A
Read Full Comment
…|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…
MolloKhan
MolloKhan
Read Full Comment
Hey Nikrou, I did used api-platform 3.0.4 and Symfony 6.1. And just in this moment I tested with symfony 6.0 and 2.7. Is does work very well. in which step is your plainPassword empty? Because in the end of…
Hi, With the Version 3 of Api_platform, Subresources are more complicated than it is explain here. Here is a code example to apply subresources with the new version Hope it help ```