commit be18b543d574acebccdb4f2b03d7851c2ee46284 parent 867f3a623a1265654a641a9cf9f8c5f620f36464 Author: Felicitus <felicitus@felicitus.org> Date: Sun, 29 Mar 2015 23:25:37 +0200 Added ApiDoc hinting for the types. Diffstat:
M | src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php b/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php @@ -13,12 +13,11 @@ use FOS\RestBundle\Controller\Annotations\View; class DefaultController extends FOSRestController { /** + * Retrieves all SI Prefixes in the database + * * @Routing\Route("/siprefix", defaults={"method" = "get","_format" = "json"}) * @Routing\Method({"GET"}) - * @ApiDoc( - * description="Retrieves all SI Prefixes in the database" - * ) - * ) + * @ApiDoc(output="array<PartKeepr\SiPrefixBundle\Entity\SiPrefix>") * * @View() *