aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 /**