aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-29 20:32:11 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-29 20:32:11 +0100
commit27f15aa4ca4eb0eff11ddb3f3a2ce6fe945ba0e2 (patch)
tree95a48bdfad990d7d4039b3e9e9c1ceea856e278c /src/Wallabag/CoreBundle/Controller
parentf8bf8952541b51481a7463c6efc0b2bc9c1edff1 (diff)
downloadwallabag-27f15aa4ca4eb0eff11ddb3f3a2ce6fe945ba0e2.tar.gz
wallabag-27f15aa4ca4eb0eff11ddb3f3a2ce6fe945ba0e2.tar.zst
wallabag-27f15aa4ca4eb0eff11ddb3f3a2ce6fe945ba0e2.zip
improve API
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r--src/Wallabag/CoreBundle/Controller/WallabagRestController.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
index a2a9af38..eb41d011 100644
--- a/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/CoreBundle/Controller/WallabagRestController.php
@@ -5,6 +5,7 @@ namespace Wallabag\CoreBundle\Controller;
5use Nelmio\ApiDocBundle\Annotation\ApiDoc; 5use Nelmio\ApiDocBundle\Annotation\ApiDoc;
6use FOS\RestBundle\Controller\Annotations\View; 6use FOS\RestBundle\Controller\Annotations\View;
7use Symfony\Bundle\FrameworkBundle\Controller\Controller; 7use Symfony\Bundle\FrameworkBundle\Controller\Controller;
8use Symfony\Component\HttpFoundation\Request;
8use Symfony\Component\Security\Core\Exception\AccessDeniedException; 9use Symfony\Component\Security\Core\Exception\AccessDeniedException;
9use Wallabag\CoreBundle\Entity\Entries; 10use Wallabag\CoreBundle\Entity\Entries;
10use Wallabag\CoreBundle\Entity\Tags; 11use Wallabag\CoreBundle\Entity\Tags;
@@ -20,9 +21,19 @@ class WallabagRestController
20 * ) 21 * )
21 * @return Entries 22 * @return Entries
22 */ 23 */
23 public function getEntriesAction() 24 public function getEntriesAction(Request $request)
24 { 25 {
25 26 $isArchive = $request->query->get('archive');
27 var_dump($isArchive);
28 $isStarred = $request->query->get('star');
29 $isDeleted = $request->query->get('delete');
30 $sort = $request->query->get('sort');
31 $order = $request->query->get('order');
32 $page = $request->query->get('page');
33 $perPage = $request->query->get('perPage');
34 $tags = $request->query->get('tags', array());
35
36 return 'plop';
26 } 37 }
27 38
28 /** 39 /**