1000 search results

Hey Jarrod! > Loving the API Platform specific SymfonyCasts Thank you! ❤️ > Just wondering if you'll be covering more advanced access control concepts Definitely, but questions are always welcome early in a tutorial in case we're missing some legit situation! > For…
weaverryan
weaverryan
Read Full Comment
Hi, is it possible to user API Platform on an existing SF3.4 project ? Or is it better do to it on SF4 ?
…for your insight. The fact that it's used by API Platform is a strong point. I found this interesting article on Github where API Platform explain their choices. https://github.com/api-platform/api-platform/issues/753 So unless you need a specific feature…
Understand. That is made in Symfony: https://api-platform.com. I keep an eye on it too.
Neandher Carlos
Neandher Carlos
Read Full Comment
The only thing I can think of is that it's an ApiPlatform bug. Try asking in their Slack channel Sorry I cannot help further
MolloKhan
MolloKhan
Read Full Comment
Hey |mention:80691| Forgive my ignorance but is the Hydra Admin a project of ApiPlatform? Perhaps you could create an issue on their GitHub repository Cheers!
MolloKhan
MolloKhan
Read Full Comment
Hi Ryan, I am unable to execute POST operations: error 500 "The class 'ApiPlatform\\Metadata\\Post' was not found in the chain configured namespaces App\\Entity". I cannot figure out why others operations class are working well but not this one... Have an idea ? Best…
Heh, but you are on chapter 36 of ApiPlatform course ;) you should know how to autowire services ;) ``` namespace App\Listeners; use ApiPlatform\Validator\ValidatorInterface; // ... class YourDoctrineListener //... { private ValidatorInterface $validator; public function __construct(ValidatorInterface $validator) { $this->validator = $validator; } public function prePersist(/*...*/) { // ... $this->validator->validate($entity…
Hey David, Yea, many things have changed in ApiPlatform 3, but they changed for good. We just need to rewire our brains :) By the way, we're planning in releasing a new series about ApiPlatform :) Thanks for sharing your solution with others. Cheers!
MolloKhan
MolloKhan
Read Full Comment
…apparently the ApiPlatform add an "s" at the end. The problem is that my entity is called "Area" and plural is "Area" . Is there a way to avoid ApiPlatform to add the "s" at the end of entrypoint? ` /api/area/1 instead of /api/areas…
GianlucaF
GianlucaF
Read Full Comment
Hey Benoit L. and which version on ApiPlatform do you have installed? Do you still have this error? Cheers!
Heythere , I booted from a full installation of symfony 5.3.9 and ApiPlatform 2.6. I have problem with MySql database installation. It's ok for the fixtures and displaying the data in the API. But when I run the test --filter=testCreateCheeselisting, there is…
In the meanwhile, try upgrading ApiPlatform to its latest version, just in case you are on a not fully working version
MolloKhan
MolloKhan
Read Full Comment
…NotFoundHttpException: "No route found for "GET /bundles/apiplatform/swagger-ui/swagger-ui.css" NotFoundHttpException: "No route found for "GET /bundles/apiplatform/init-swagger-ui.js" (from "https://localhost:8001/api")" NotFoundHttpException: "No route found for "GET /bundles/apiplatform/webby.png" (from "https://localhost:8001/api")"
Arindam SARKAR
Arindam SARKAR
Read Full Comment
…string { return $this->plainPassword; } /** * @param string $plainPassword */ public function setPlainPassword(string $plainPassword): self { $this->plainPassword = $plainPassword; return $this; } } ` UsersDataPersister: ` namespace App\DataPersister; use ApiPlatform\Core\DataPersister\DataPersisterInterface; use App\Entity\Users; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; class UsersDataPersister…
> And thank you a lot to whomever wrote these tutorials on ApiPlatform/Security, they're really helpful and so simple to follow! That would be Chloé :)
MolloKhan
MolloKhan
Read Full Comment
36 lines | src/Test/CustomApiTestCase.php
// ... lines 1 - 2
namespace App\Test;
// ... line 4
use App\ApiPlatform\Test\ApiTestCase;
// ... lines 6 - 8
class CustomApiTestCase extends ApiTestCase
// ... lines 10 - 36
See Code Block in Script
// ... lines 1 - 2
namespace App\Tests\Functional;
use App\ApiPlatform\Test\ApiTestCase;
class CheeseListingResourceTest extends ApiTestCase
// ... lines 8 - 14
See Code Block in Script
I'm trying to follow this series with newer versions of Symfony (7.3) and API Platform (4.2). Because I can't use the downloaded code, I'm starting from scratch and just trying to follow along. So far so good, but when I…
JeffJones
JeffJones
Read Full Comment
Ohh, so there's a dependency using the `api-platform/graphql` library. The problem is we can't know which one it is because `composer why` is not working. The only idea that comes to mind (for the moment) is to manually remove each dependency…
MolloKhan
MolloKhan
Read Full Comment