1000 search results

Hi everybody Note i learn Api platform with the version 3.0 and Symfony 6.1 I created the User Entity with the maker as explained in the video but the relation is not an IRI but a User Class in my CheeseListing entity. User…
…prefix", "path", "host", "schemes", "methods", "defaults", "requirements", "options", "condition", "controller", "name_prefix", "trailing_slash_on_root", "locale", "format", "utf8", "exclude", "stateless" in C:\wamp64\www\bookshop-api\config/routes/api_platform.yaml (which is being imported from "C:\wamp64\www\bookshop-api\src\Kernel.php").
(base) shubham@Shubhams-MacBook-Air API-Platform % ./bin/console doctrine:database:create In AbstractMySQLDriver.php line 115: An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away In Exception.php line 18: SQLSTATE[HY000] [2006] MySQL server has gone away In PDOConnection…
CloudCreators
CloudCreators
Read Full Comment
…Do you have a tutorial/example for doing this, please? Only thing I seem to come by is this page on the API Platform website but it seems a bit incomplete: https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations. Thanks!
Hi there i have created API platform 2.6 app and I'm using tests that extends ApiTestCase, so i'm creating some entities before POST call, but that EntityManager in that POST call don't "see" those new entites thus error: Item not found
Daniel K.
Daniel K.
Read Full Comment
Sure I did it: https://github.com/api-platform/docs/pull/1234 About your suggestion, I am now trying to solve an issue with deserialization, and after I'll try it :)
Running into an issue with api-platform 2.5 and phpunit. `composer require test --dev` Updated phpunit.xml.dist to SYMFONY_PHPUNIT_VERSION=8.2 and created a file in tests/Functional/MyResrouceTest.php Ran "php bin/phpunit" to download the files and it worked. After…
…and not only one so i can't just diretly use doctrine models. how do i i handle this bestens ? 2 - Is there a tool you suggest to auto generate symfony / doctrine classes from openapi specs to use it with api platform ? Thanks in advance.
soufianejhioui
soufianejhioui
Read Full Comment
Hello, I've installed the API Platform with the following command "composer require api". It has been intalled and I have acces to "/api" but I don't see any CSS as saw in the video tutorial. Can someone let me know how to use…
Arindam SARKAR
Arindam SARKAR
Read Full Comment
I really really like symfony and api platform. But i have a weird challenge. (i've never installed anything on a linux machine before, so bear with me please AND i am a newbie to symfony 4). We have a new Azure server. CentOs is…
Hi Ryan, I have followed your "API Platform Part 2" course series and now I realize that most of the challenges I had already covered in that course. So now I agree that API Platform can be used for any type of API implementations :), thanks…
I've noticed the documentation (https://api-platform.com/docs/core/serialization/#using-serialization-groups-per-operation) indicates that when serialization groups are specified at an operation level they should take precedence over the configuration specified at the resource level. This makes sense and seems…
Why did you change the name from "API Platform: Serious RESTful & GraphQL API" to "API Platform: Serious RESTful APIs"? :( I was waiting for the GraphQL part the most.
Bartlomeij
Bartlomeij
Read Full Comment
Or maybe Symfony translations before API Platform - not entirely sure - a few are being planned currently!
weaverryan
weaverryan
Read Full Comment
52 lines | config/services.yaml
// ... lines 1 - 7
services:
// ... lines 9 - 47
App\DataProvider\UserDataProvider:
bind:
$collectionDataProvider: '@api_platform.doctrine.orm.default.collection_data_provider'
$itemDataProvider: '@api_platform.doctrine.orm.default.item_data_provider'
See Code Block in Script
51 lines | config/services.yaml
// ... lines 1 - 47
App\DataProvider\UserDataProvider:
bind:
$collectionDataProvider: '@api_platform.doctrine.orm.default.collection_data_provider'
See Code Block in Script
47 lines | config/services.yaml
// ... lines 1 - 7
services:
// ... lines 9 - 43
App\DataPersister\CheeseListingDataPersister:
bind:
$decoratedDataPersister: '@api_platform.doctrine.orm.data_persister'
See Code Block in Script
43 lines | config/services.yaml
// ... lines 1 - 7
services:
// ... lines 9 - 39
App\DataPersister\UserDataPersister:
bind:
$decoratedDataPersister: '@api_platform.doctrine.orm.data_persister'
See Code Block in Script
43 lines | config/services.yaml
// ... lines 1 - 7
services:
// ... lines 9 - 32
App\Serializer\AdminGroupsContextBuilder:
decorates: 'api_platform.serializer.context_builder'
arguments: [ '@App\Serializer\AdminGroupsContextBuilder.inner' ]
// ... lines 36 - 43
See Code Block in Script
33 lines | config/services.yaml
// ... lines 1 - 8
services:
// ... lines 10 - 29
App\Serializer\AdminGroupsContextBuilder:
decorates: 'api_platform.serializer.context_builder'
arguments: [ '@App\Serializer\AdminGroupsContextBuilder.inner' ]
See Code Block in Script