From a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 30 Jan 2015 07:50:52 +0100 Subject: add documentation for API --- src/Wallabag/CoreBundle/Controller/EntryController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php') diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index c6c94462..25f18711 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -64,6 +64,8 @@ class EntryController extends Controller public function showUnreadAction() { $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); + // TODO don't give the user ID like this + // TODO change pagination $entries = $repository->findUnreadByUser(1, 0); return $this->render( @@ -81,6 +83,8 @@ class EntryController extends Controller public function showArchiveAction() { $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); + // TODO don't give the user ID like this + // TODO change pagination $entries = $repository->findArchiveByUser(1, 0); return $this->render( @@ -98,6 +102,8 @@ class EntryController extends Controller public function showStarredAction() { $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries'); + // TODO don't give the user ID like this + // TODO change pagination $entries = $repository->findStarredByUser(1, 0); return $this->render( -- cgit v1.2.3