Closed salamichel closed 4 years ago
@salamichel API controller services need to be public for the FOSRest route loader, see: https://github.com/sonata-project/SonataMediaBundle/pull/1654
@jeroendk Hi thx for reply! now it seems that we we are not ready for nelmio 3x
[Semantical Error] The annotation "@Nelmio\ApiDocBundle\Annotation\ApiDoc" in method Sonata\ProductBundle\Controller\Api\ProductController::getProductAction()
does not exist, or could not be auto-loaded
@salamichel Did you install the Nelmio bundle? You need to install it manually: https://sonata-project.org/bundles/ecommerce/develop/doc/reference/architecture/api.html
Yes i did but i have to downgrade to 2.x, now the documentation page is empty
routes are correctly registered and working
@salamichel I finish sandbox:3.0. With Symfony 3.4 documentation work correct. Also I start working on sandbox:4.0 with Symfony 4.4 where documentation look like here. I will work on it in next week.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Close in favor for https://github.com/sonata-project/dev-kit/issues/778
Hi does somesone succes using API method ?
i have and issue An exception has been thrown during the rendering of a template ("Class could not be determined for Controller identified by "sonata.product.controller.api.product". Make sure there is a loader supporting the "rest" type.
Environment
Sonata packages
Symfony packages
PHP version
Subject
Steps to reproduce
Expected results
Actual results
An exception has been thrown during the rendering of a template ("Class could not be determined for Controller identified by "sonata.product.controller.api.product" (...) Make sure there is a loader supporting the "rest" type.").