aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/AnnotationBundle')
-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 *