+ $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'));