diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/WallabagRestController.php | 15 |
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; | |||
5 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; | 5 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
6 | use FOS\RestBundle\Controller\Annotations\View; | 6 | use FOS\RestBundle\Controller\Annotations\View; |
7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 7 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
8 | use Symfony\Component\HttpFoundation\Request; | ||
8 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; | 9 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
9 | use Wallabag\CoreBundle\Entity\Entries; | 10 | use Wallabag\CoreBundle\Entity\Entries; |
10 | use Wallabag\CoreBundle\Entity\Tags; | 11 | use 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 | /** |