* )
*
* @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('WallabagApiBundle:WallabagRest:getAnnotations', [
+ 'entry' => $entry,
+ ]);
}
/**
* Creates a new annotation.
*
* @param Request $request
- * @param Entry $entry
+ * @param Entry $entry
+ *
* @return JsonResponse
* @ApiDoc(
* requirements={
* {"name"="text", "dataType"="string", "required"=true, "description"=""},
* }
* )
- *
*/
public function postAnnotationAction(Request $request, Entry $entry)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', [
'request' => $request,
- 'entry' => $entry
+ 'entry' => $entry,
]);
- return $response;
}
/**
* @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',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', [
'annotation' => $annotation,
- 'request' => $request
+ 'request' => $request,
]);
- return $response;
}
/**
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
* @param Annotation $annotation
+ *
* @return JsonResponse
*/
public function deleteAnnotationAction(Annotation $annotation)
{
$this->validateAuthentication();
- $response = $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation',
- [
+ return $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation', [
'annotation' => $annotation,
]);
- return $response;
}
/**