partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit ace9df892ea9602194d2aa83ea3b5fd3c54035ab
parent 684ee4656bda6379c4c30be4869bc76d071ca381
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat, 21 Dec 2013 23:10:51 +0100

Moved api endpoint for SiPrefix

Diffstat:
Adocumentation/GENERIC-CONTROLLER | 0
Msrc/PartKeepr/SiPrefixBundle/Controller/DefaultController.php | 13++++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/documentation/GENERIC-CONTROLLER b/documentation/GENERIC-CONTROLLER diff --git a/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php b/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php @@ -5,16 +5,23 @@ namespace PartKeepr\SiPrefixBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; use PartKeepr\Manager\ManagerFilter; use PartKeepr\SiPrefix\SiPrefixManager; -use Symfony\Component\Routing\Annotation\Route; +use Sensio\Bundle\FrameworkExtraBundle\Configuration as Routing; +use JMS\Serializer\Annotation as JMS; use Nelmio\ApiDocBundle\Annotation\ApiDoc; use FOS\RestBundle\Controller\Annotations\View; class DefaultController extends FOSRestController { /** - * @Route("/siprefix/get/", defaults={"method" = "get","_format" = "json"}) - * @ApiDoc(description="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" + * ) + * ) + * * @View() + * */ public function getSiPrefixesAction() {