]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/WallabagRestController.php
remove dumb code
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / WallabagRestController.php
index cb68784d55d02080d5262ae3bdac5b61d4d8474c..2384325f49d5eb57ab965aee11cc52dae5d5ea80 100644 (file)
@@ -232,37 +232,13 @@ class WallabagRestController extends Controller
      * Retrieve all tags
      *
      * @ApiDoc(
+     *          {"name"="user", "dataType"="integer", "requirement"="\w+", "description"="The user ID"}
      * )
      */
-    public function getTagsAction()
+    public function getTagsUserAction()
     {
     }
 
-    /**
-     * Retrieve a single tag
-     *
-     * @ApiDoc(
-     *       requirements={
-     *          {"name"="label", "dataType"="string", "requirement"="\w+", "description"="Label of the tag"}
-     *       }
-     * )
-     */
-    public function getTagAction($label)
-    {
-        $tag = $this
-            ->getDoctrine()
-            ->getRepository('WallabagCoreBundle:Tag')
-            ->findOneByLabel($label);
-
-        if (is_null($tag)) {
-            throw $this->createNotFoundException();
-        }
-
-        $json = $this->get('serializer')->serialize($tag, 'json');
-
-        return new Response($json, 200, array('application/json'));
-    }
-
     /**
      * Permanently remove one tag from **every** entry
      *