diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-04 11:40:48 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-03-04 11:46:18 +0100 |
commit | fba9e7d44d5987a603add50dc450f50079340dcc (patch) | |
tree | 501001e8866d7c1c7c4e22c384b208b68aff257b /src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |
parent | 11a452813c5c048174f0d827c2a171bb53520d0a (diff) | |
download | wallabag-fba9e7d44d5987a603add50dc450f50079340dcc.tar.gz wallabag-fba9e7d44d5987a603add50dc450f50079340dcc.tar.zst wallabag-fba9e7d44d5987a603add50dc450f50079340dcc.zip |
Remove 'content' from API
Waiting to find a good solution to avoid side problem since user can no define the content
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 28145e45..35a90edd 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -99,7 +99,6 @@ class WallabagRestController extends FOSRestController | |||
99 | * {"name"="tags", "dataType"="string", "required"=false, "format"="tag1,tag2,tag3", "description"="a comma-separated list of tags."}, | 99 | * {"name"="tags", "dataType"="string", "required"=false, "format"="tag1,tag2,tag3", "description"="a comma-separated list of tags."}, |
100 | * {"name"="starred", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already starred"}, | 100 | * {"name"="starred", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already starred"}, |
101 | * {"name"="archive", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already archived"}, | 101 | * {"name"="archive", "dataType"="boolean", "required"=false, "format"="true or false", "description"="entry already archived"}, |
102 | * {"name"="content", "dataType"="string", "required"=false, "format"="content", "description"="content you want to pass directly"}, | ||
103 | * } | 102 | * } |
104 | * ) | 103 | * ) |
105 | * | 104 | * |
@@ -110,7 +109,6 @@ class WallabagRestController extends FOSRestController | |||
110 | $this->validateAuthentication(); | 109 | $this->validateAuthentication(); |
111 | 110 | ||
112 | $url = $request->request->get('url'); | 111 | $url = $request->request->get('url'); |
113 | $content = $request->request->get('content'); | ||
114 | $isArchived = $request->request->get('archive'); | 112 | $isArchived = $request->request->get('archive'); |
115 | $isStarred = $request->request->get('starred'); | 113 | $isStarred = $request->request->get('starred'); |
116 | 114 | ||
@@ -132,10 +130,6 @@ class WallabagRestController extends FOSRestController | |||
132 | $entry->setArchived(true); | 130 | $entry->setArchived(true); |
133 | } | 131 | } |
134 | 132 | ||
135 | if (!empty($content)) { | ||
136 | $entry->setContent($content); | ||
137 | } | ||
138 | |||
139 | $em = $this->getDoctrine()->getManager(); | 133 | $em = $this->getDoctrine()->getManager(); |
140 | $em->persist($entry); | 134 | $em->persist($entry); |
141 | 135 | ||