aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-12-29 14:54:55 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-12-29 14:54:55 +0100
commit01fddd0cb2fc6c83998a54d24d4ca6a27b564d36 (patch)
tree123dc57e63fc08fd6956bd3da0ca01db234c7b2b /src/Wallabag/ApiBundle/Controller
parentfc73222723c7a0c9b577805d3ef51eb96b124b92 (diff)
downloadwallabag-01fddd0cb2fc6c83998a54d24d4ca6a27b564d36.tar.gz
wallabag-01fddd0cb2fc6c83998a54d24d4ca6a27b564d36.tar.zst
wallabag-01fddd0cb2fc6c83998a54d24d4ca6a27b564d36.zip
Fix parameters regarding documentation
Parameters are `star` & `archived`, not `is_starred` & `is_archived`
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index 587013f6..c5df1e03 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -174,8 +174,8 @@ class WallabagRestController extends FOSRestController
174 $this->validateUserAccess($entry->getUser()->getId()); 174 $this->validateUserAccess($entry->getUser()->getId());
175 175
176 $title = $request->request->get('title'); 176 $title = $request->request->get('title');
177 $isArchived = $request->request->get('is_archived'); 177 $isArchived = $request->request->get('archive');
178 $isStarred = $request->request->get('is_starred'); 178 $isStarred = $request->request->get('star');
179 179
180 if (!is_null($title)) { 180 if (!is_null($title)) {
181 $entry->setTitle($title); 181 $entry->setTitle($title);