1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

bring annotations to API

This commit is contained in:
Thomas Citharel 2016-03-18 16:41:23 +01:00 committed by Jeremy Benoist
parent e8331dd9e7
commit 351eb8d97e
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 138 additions and 22 deletions

View file

@ -15,11 +15,9 @@ class WallabagAnnotationController extends FOSRestController
/**
* Retrieve annotations for an entry.
*
* @ApiDoc(
* requirements={
* {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"}
* }
* )
* @param Entry $entry
*
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @return Response
*/
@ -42,13 +40,7 @@ class WallabagAnnotationController extends FOSRestController
*
* @param Entry $entry
*
* @ApiDoc(
* requirements={
* {"name"="ranges", "dataType"="array", "requirement"="\w+", "description"="The range array for the annotation"},
* {"name"="quote", "dataType"="string", "required"=false, "description"="Optional, quote for the annotation"},
* {"name"="text", "dataType"="string", "required"=true, "description"=""},
* }
* )
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @return Response
*/
@ -81,11 +73,7 @@ class WallabagAnnotationController extends FOSRestController
/**
* Updates an annotation.
*
* @ApiDoc(
* requirements={
* {"name"="annotation", "dataType"="string", "requirement"="\w+", "description"="The annotation ID"}
* }
* )
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
@ -110,11 +98,7 @@ class WallabagAnnotationController extends FOSRestController
/**
* Removes an annotation.
*
* @ApiDoc(
* requirements={
* {"name"="annotation", "dataType"="string", "requirement"="\w+", "description"="The annotation ID"}
* }
* )
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*