* )
*
* @param Entry $entry
+ *
* @return JsonResponse
*/
public function getAnnotationsAction(Entry $entry)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations',
- [
- 'entry' => $entry
- ]);
- return $response;
+ return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:getAnnotations', [
+ 'entry' => $entry,
+ ]);
}
/**
* Creates a new annotation.
*
- * @param Request $request
- * @param Entry $entry
- * @return JsonResponse
* @ApiDoc(
* requirements={
* {"name"="ranges", "dataType"="array", "requirement"="\w+", "description"="The range array for the annotation"},
* }
* )
*
+ * @param Request $request
+ * @param Entry $entry
+ *
+ * @return JsonResponse
*/
public function postAnnotationAction(Request $request, Entry $entry)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation',
- [
- 'request' => $request,
- 'entry' => $entry
- ]);
- return $response;
+ return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:postAnnotation', [
+ 'request' => $request,
+ 'entry' => $entry,
+ ]);
}
/**
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
* @param Annotation $annotation
- * @param Request $request
+ * @param Request $request
+ *
* @return JsonResponse
*/
public function putAnnotationAction(Annotation $annotation, Request $request)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation',
- [
- 'annotation' => $annotation,
- 'request' => $request
- ]);
- return $response;
+ return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:putAnnotation', [
+ 'annotation' => $annotation,
+ 'request' => $request,
+ ]);
}
/**
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
* @param Annotation $annotation
+ *
* @return JsonResponse
*/
public function deleteAnnotationAction(Annotation $annotation)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation',
- [
- 'annotation' => $annotation,
- ]);
- return $response;
+ return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:deleteAnnotation', [
+ 'annotation' => $annotation,
+ ]);
}
/**