aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle/Controller
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-03-18 16:41:23 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-22 09:06:07 +0200
commit351eb8d97ea1520f87ae762faf297083a716c945 (patch)
tree98a213975b0fbf30f59025d2f6926005df8c4c4e /src/Wallabag/AnnotationBundle/Controller
parente8331dd9e7772a396bb211459eca4a682c8e947e (diff)
downloadwallabag-351eb8d97ea1520f87ae762faf297083a716c945.tar.gz
wallabag-351eb8d97ea1520f87ae762faf297083a716c945.tar.zst
wallabag-351eb8d97ea1520f87ae762faf297083a716c945.zip
bring annotations to API
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Controller')
-rw-r--r--src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php28
1 files changed, 6 insertions, 22 deletions
diff --git a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php
index ad083e31..80ac0035 100644
--- a/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php
+++ b/src/Wallabag/AnnotationBundle/Controller/WallabagAnnotationController.php
@@ -15,11 +15,9 @@ class WallabagAnnotationController extends FOSRestController
15 /** 15 /**
16 * Retrieve annotations for an entry. 16 * Retrieve annotations for an entry.
17 * 17 *
18 * @ApiDoc( 18 * @param Entry $entry
19 * requirements={ 19 *
20 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"} 20 * @see Wallabag\ApiBundle\Controller\WallabagRestController
21 * }
22 * )
23 * 21 *
24 * @return Response 22 * @return Response
25 */ 23 */
@@ -42,13 +40,7 @@ class WallabagAnnotationController extends FOSRestController
42 * 40 *
43 * @param Entry $entry 41 * @param Entry $entry
44 * 42 *
45 * @ApiDoc( 43 * @see Wallabag\ApiBundle\Controller\WallabagRestController
46 * requirements={
47 * {"name"="ranges", "dataType"="array", "requirement"="\w+", "description"="The range array for the annotation"},
48 * {"name"="quote", "dataType"="string", "required"=false, "description"="Optional, quote for the annotation"},
49 * {"name"="text", "dataType"="string", "required"=true, "description"=""},
50 * }
51 * )
52 * 44 *
53 * @return Response 45 * @return Response
54 */ 46 */
@@ -81,11 +73,7 @@ class WallabagAnnotationController extends FOSRestController
81 /** 73 /**
82 * Updates an annotation. 74 * Updates an annotation.
83 * 75 *
84 * @ApiDoc( 76 * @see Wallabag\ApiBundle\Controller\WallabagRestController
85 * requirements={
86 * {"name"="annotation", "dataType"="string", "requirement"="\w+", "description"="The annotation ID"}
87 * }
88 * )
89 * 77 *
90 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation") 78 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
91 * 79 *
@@ -110,11 +98,7 @@ class WallabagAnnotationController extends FOSRestController
110 /** 98 /**
111 * Removes an annotation. 99 * Removes an annotation.
112 * 100 *
113 * @ApiDoc( 101 * @see Wallabag\ApiBundle\Controller\WallabagRestController
114 * requirements={
115 * {"name"="annotation", "dataType"="string", "requirement"="\w+", "description"="The annotation ID"}
116 * }
117 * )
118 * 102 *
119 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation") 103 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
120 * 104 *