diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-07-01 10:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 10:35:45 +0200 |
commit | 9dbd3e93028630ca808042387e88304020c80c73 (patch) | |
tree | c79b5cd53b9c2b1a2463d2809cc059fe7d74a65c /src/Wallabag/ApiBundle | |
parent | a314b920bf20feedbeee6ce0432be89901091481 (diff) | |
parent | 4f0558a0d43b3d0bbd661c06568257a91836fa91 (diff) | |
download | wallabag-9dbd3e93028630ca808042387e88304020c80c73.tar.gz wallabag-9dbd3e93028630ca808042387e88304020c80c73.tar.zst wallabag-9dbd3e93028630ca808042387e88304020c80c73.zip |
Merge pull request #2174 from wallabag/api-filter-tags
Add filter for tags on API
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 4fae4b0a..03eb9b08 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -51,10 +51,11 @@ class WallabagRestController extends FOSRestController | |||
51 | $page = (int) $request->query->get('page', 1); | 51 | $page = (int) $request->query->get('page', 1); |
52 | $perPage = (int) $request->query->get('perPage', 30); | 52 | $perPage = (int) $request->query->get('perPage', 30); |
53 | $since = $request->query->get('since', 0); | 53 | $since = $request->query->get('since', 0); |
54 | $tags = $request->query->get('tags', ''); | ||
54 | 55 | ||
55 | $pager = $this->getDoctrine() | 56 | $pager = $this->getDoctrine() |
56 | ->getRepository('WallabagCoreBundle:Entry') | 57 | ->getRepository('WallabagCoreBundle:Entry') |
57 | ->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $sort, $order, $since); | 58 | ->findEntries($this->getUser()->getId(), $isArchived, $isStarred, $sort, $order, $since, $tags); |
58 | 59 | ||
59 | $pager->setCurrentPage($page); | 60 | $pager->setCurrentPage($page); |
60 | $pager->setMaxPerPage($perPage); | 61 | $pager->setMaxPerPage($perPage); |