1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-17 17:08:37 +00:00

add documentation for API

This commit is contained in:
Nicolas Lœuillet 2015-01-30 07:50:52 +01:00
parent a65f5d5563
commit a8c90c5c1b
3 changed files with 101 additions and 47 deletions

View file

@ -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(