aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index e2e4924b..b30ab267 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -529,6 +529,7 @@ class WallabagRestController extends FOSRestController
529 * ) 529 * )
530 * 530 *
531 * @param Entry $entry 531 * @param Entry $entry
532 *
532 * @return JsonResponse 533 * @return JsonResponse
533 */ 534 */
534 public function getAnnotationsAction(Entry $entry) 535 public function getAnnotationsAction(Entry $entry)
@@ -537,8 +538,9 @@ class WallabagRestController extends FOSRestController
537 538
538 $response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations', 539 $response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations',
539 [ 540 [
540 'entry' => $entry 541 'entry' => $entry,
541 ]); 542 ]);
543
542 return $response; 544 return $response;
543 } 545 }
544 546
@@ -546,7 +548,8 @@ class WallabagRestController extends FOSRestController
546 * Creates a new annotation. 548 * Creates a new annotation.
547 * 549 *
548 * @param Request $request 550 * @param Request $request
549 * @param Entry $entry 551 * @param Entry $entry
552 *
550 * @return JsonResponse 553 * @return JsonResponse
551 * @ApiDoc( 554 * @ApiDoc(
552 * requirements={ 555 * requirements={
@@ -555,7 +558,6 @@ class WallabagRestController extends FOSRestController
555 * {"name"="text", "dataType"="string", "required"=true, "description"=""}, 558 * {"name"="text", "dataType"="string", "required"=true, "description"=""},
556 * } 559 * }
557 * ) 560 * )
558 *
559 */ 561 */
560 public function postAnnotationAction(Request $request, Entry $entry) 562 public function postAnnotationAction(Request $request, Entry $entry)
561 { 563 {
@@ -564,8 +566,9 @@ class WallabagRestController extends FOSRestController
564 $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', 566 $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation',
565 [ 567 [
566 'request' => $request, 568 'request' => $request,
567 'entry' => $entry 569 'entry' => $entry,
568 ]); 570 ]);
571
569 return $response; 572 return $response;
570 } 573 }
571 574
@@ -581,7 +584,8 @@ class WallabagRestController extends FOSRestController
581 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation") 584 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
582 * 585 *
583 * @param Annotation $annotation 586 * @param Annotation $annotation
584 * @param Request $request 587 * @param Request $request
588 *
585 * @return JsonResponse 589 * @return JsonResponse
586 */ 590 */
587 public function putAnnotationAction(Annotation $annotation, Request $request) 591 public function putAnnotationAction(Annotation $annotation, Request $request)
@@ -591,8 +595,9 @@ class WallabagRestController extends FOSRestController
591 $response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', 595 $response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation',
592 [ 596 [
593 'annotation' => $annotation, 597 'annotation' => $annotation,
594 'request' => $request 598 'request' => $request,
595 ]); 599 ]);
600
596 return $response; 601 return $response;
597 } 602 }
598 603
@@ -608,6 +613,7 @@ class WallabagRestController extends FOSRestController
608 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation") 613 * @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
609 * 614 *
610 * @param Annotation $annotation 615 * @param Annotation $annotation
616 *
611 * @return JsonResponse 617 * @return JsonResponse
612 */ 618 */
613 public function deleteAnnotationAction(Annotation $annotation) 619 public function deleteAnnotationAction(Annotation $annotation)
@@ -618,6 +624,7 @@ class WallabagRestController extends FOSRestController
618 [ 624 [
619 'annotation' => $annotation, 625 'annotation' => $annotation,
620 ]); 626 ]);
627
621 return $response; 628 return $response;
622 } 629 }
623 630