partkeepr

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

commit e1698b9389645c4ff351c8b00062f99e1c6c5564
parent 1ed21872f7c8f87e1c3da18d456287dad5142979
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon,  8 Jun 2015 22:17:22 +0200

Added proper API documentation to the AuthBundle and SiPrefixBundle

Diffstat:
Msrc/PartKeepr/AuthBundle/Controller/DefaultController.php | 2+-
Msrc/PartKeepr/SiPrefixBundle/Controller/DefaultController.php | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PartKeepr/AuthBundle/Controller/DefaultController.php b/src/PartKeepr/AuthBundle/Controller/DefaultController.php @@ -26,7 +26,7 @@ class DefaultController extends FOSRestController * @Routing\Method({"POST"}) * @RequestParam(name="username", strict=true, description="The username, 3-50 characters. Allowed characters: a-z, A-Z, 0-9, an underscore (_), a backslash (\), a slash (/), a dot (.) or a dash (-)", requirements=@Username, allowBlank=false) * @RequestParam(name="password", strict=true, description="The password in MD5 format", requirements=@PasswordMD5Hash, allowBlank=false) - * @ApiDoc(output="PartKeepr\AuthBundle\Response\LoginResponse") + * @ApiDoc(section="auth",output="PartKeepr\AuthBundle\Response\LoginResponse") * @View() * * @param ParamFetcher $paramFetcher diff --git a/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php b/src/PartKeepr/SiPrefixBundle/Controller/DefaultController.php @@ -16,7 +16,7 @@ class DefaultController extends DoctrineRESTQueryController * * @Routing\Route("/siprefix", defaults={"method" = "get","_format" = "json"}) * @Routing\Method({"GET"}) - * @ApiDoc(output="array<PartKeepr\SiPrefixBundle\Entity\SiPrefix>") + * @ApiDoc(section="siprefix",output="array<PartKeepr\SiPrefixBundle\Entity\SiPrefix>") * * @View() *