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:
parent
a65f5d5563
commit
a8c90c5c1b
3 changed files with 101 additions and 47 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue