1000 search results

Thanks for the reply, I opnened an issue on friday: https://github.com/api-platform/api-platform/issues/1899 btw: great course and teacher!
TristanoMilano
TristanoMilano
Read Full Comment
I'm having the same problem here, I installed api platform by the official guide with docker, so the version is different the one you used for the tutorial, api platform 2.6 symfony 5.2
miguelbarreiro85
miguelbarreiro85
Read Full Comment
…error: 1) App\Tests\Functional\CheesesListingResourceTest::testCreateCheeseListing TypeError: Argument 1 passed to App\ApiPlatform\Test\ApiTestCase::getHttpClient() must be an instance of App\ApiPlatform\Test\Client or null, instance of ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client given, How can I override the registration of…
Manuel G.
Manuel G.
Read Full Comment
Hey Miky! It's an excellent question actually :). API Platform itself runs *fine* on PHP 8. But at the time we created *this* tutorial, PHP 8 wasn't released yet. And so, some of the dependencies in our composer.lock file do not support PHP…
weaverryan
weaverryan
Read Full Comment
Hey m3tal! We don't currently have any plans to release a tutorial specifically about API Platform's GraphQL integration, but I'll add your vote to a tracker we keep internally. Sorry I can't give you a better answer! Cheers!
weaverryan
weaverryan
Read Full Comment
Hi there ! I am about to implement file upload in my API Platform software. What do you advise me : 1. Implementing the file upload as described in this course 2. Or going with VichUploaderBundle as mentioned in Api Platform documentation ? Thanks !
We also talk about a way to get the original data here - https://symfonycasts.com/screencast/api-platform-extending/publish-state-change#codeblock-b24168863c - sorry we didn't get back to you about that Twiscard! Thanks @Flavius for posting your solution :). Cheers!
weaverryan
weaverryan
Read Full Comment
Hey Auro I believe this other tutorial may give you good ideas of how to do so https://symfonycasts.com/screencast/api-platform-extending/custom-resource Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hi Guys! I'm trying to apply what I learned here about Api Platform on a new application, but it may be too ambitious for my skills...I have a basic logic problem, and I can't figure out what to do. I know it…
Jean-tilapin
Jean-tilapin
Read Full Comment
… I'm trying to override an existant api platform configuration `api_platform.mapping.paths` via a some kinda of custom Compiler Pass *The goal is to merge my new configuration with the existing one* Here is the configuration part that I would like to update…
…! This is just when using api-platform swagger here is my code and database schema: subject is the table name also parent_id could contain an id of subject entity, "N" level parent/childs ``` namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository…
Hazhir A.
Hazhir A.
Read Full Comment
Hey Michael! My first guess would be a problem with API platform itself! If clearing the symfony cache doesn't fix it, then may be you have made some changes to the Entities yourself and API platform is not exposing that particular field? Let me…
…question! As I know API platform doesn't support versioning yet. There are some issues on github related to this issue, also one pull request to docs describing their position, but it's not merged yet. https://github.com/api-platform/docs/pull/452 Cheers…
So if I see this right zenstruck/foundry acts as a replacement for the hautelook/AliceBundle dependency which is currently incompatible with api-platform 2.5.7? And is there a reason why zenstruck/foundry and the doctrine-fixtures-bundle isn't just a require…
Taminoful
Taminoful
Read Full Comment
…second courses. I am very excited about API Platform features. But I am concerned about the ability to create custom endpoints. For example, if I need a nested menu tree - is it possible to create such one with API Platform (with auto-generated documentation, etc…
Vladislav T.
Vladislav T.
Read Full Comment
…shadowcplays Why this does not cover the FORMS ? There is big hole between API Platform and Symfony Forms extension.... I saw many posts on the internet when nobody has normal process how to implement Form via API to javascript page like Vue, React or Angular…
Hey Kasper Smithsonian I believe you got confused by the file name. This `api_platform.yaml` files should live inside `config/routes` not inside `config/packages` Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hey Hannah R. Looks like there will be some upcoming changes in api platform configuration. There is nothing to worry about because when version 3.0 will be released all configuration changes should be listed. The weird situation that it's showing that `validation_groups…
Hey Yves I recommend you to read about Serialization groups or you want watch this chapter https://symfonycasts.com/screencast/api-platform/serialization-groups Basically, you define property by property if you want to make it readable and/or writeable Cheers!
MolloKhan
MolloKhan
Read Full Comment
…Change this line in your "config/routes/api_platform.yaml": https://github.com/symfony/recipes/blob/5ea0d377f1c5a906b029d2808c881b8ce2a79b11/api-platform/core/2.1/config/routes/api_platform.yaml#L4 Well, of course if you have a custom /api URL, not handled by API Platform already :) So…