aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-03 10:59:55 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-03 11:15:44 +0100
commit8eedc8cfacc07e998f6f0bcdfe5b76496a215ea2 (patch)
tree0468cbda100277f573e4f0f8ce02f8af3f42ccad /src/Wallabag/ApiBundle/Controller/WallabagRestController.php
parentc5c7f90a81d7a2082c7b6dad38c2a6dfdba8d016 (diff)
downloadwallabag-8eedc8cfacc07e998f6f0bcdfe5b76496a215ea2.tar.gz
wallabag-8eedc8cfacc07e998f6f0bcdfe5b76496a215ea2.tar.zst
wallabag-8eedc8cfacc07e998f6f0bcdfe5b76496a215ea2.zip
Few phpDoc fix
And some little mistakes
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index 459c4172..354a6f8e 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -60,7 +60,7 @@ class WallabagRestController extends FOSRestController
60 * } 60 * }
61 * ) 61 * )
62 * 62 *
63 * @return Entry 63 * @return Response
64 */ 64 */
65 public function getEntriesAction(Request $request) 65 public function getEntriesAction(Request $request)
66 { 66 {
@@ -101,7 +101,7 @@ class WallabagRestController extends FOSRestController
101 * } 101 * }
102 * ) 102 * )
103 * 103 *
104 * @return Entry 104 * @return Response
105 */ 105 */
106 public function getEntryAction(Entry $entry) 106 public function getEntryAction(Entry $entry)
107 { 107 {
@@ -124,7 +124,7 @@ class WallabagRestController extends FOSRestController
124 * } 124 * }
125 * ) 125 * )
126 * 126 *
127 * @return Entry 127 * @return Response
128 */ 128 */
129 public function postEntriesAction(Request $request) 129 public function postEntriesAction(Request $request)
130 { 130 {
@@ -166,7 +166,7 @@ class WallabagRestController extends FOSRestController
166 * } 166 * }
167 * ) 167 * )
168 * 168 *
169 * @return Entry 169 * @return Response
170 */ 170 */
171 public function patchEntriesAction(Entry $entry, Request $request) 171 public function patchEntriesAction(Entry $entry, Request $request)
172 { 172 {
@@ -211,7 +211,7 @@ class WallabagRestController extends FOSRestController
211 * } 211 * }
212 * ) 212 * )
213 * 213 *
214 * @return Entry 214 * @return Response
215 */ 215 */
216 public function deleteEntriesAction(Entry $entry) 216 public function deleteEntriesAction(Entry $entry)
217 { 217 {
@@ -235,6 +235,8 @@ class WallabagRestController extends FOSRestController
235 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"} 235 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"}
236 * } 236 * }
237 * ) 237 * )
238 *
239 * @return Response
238 */ 240 */
239 public function getEntriesTagsAction(Entry $entry) 241 public function getEntriesTagsAction(Entry $entry)
240 { 242 {
@@ -257,6 +259,8 @@ class WallabagRestController extends FOSRestController
257 * {"name"="tags", "dataType"="string", "required"=false, "format"="tag1,tag2,tag3", "description"="a comma-separated list of tags."}, 259 * {"name"="tags", "dataType"="string", "required"=false, "format"="tag1,tag2,tag3", "description"="a comma-separated list of tags."},
258 * } 260 * }
259 * ) 261 * )
262 *
263 * @return Response
260 */ 264 */
261 public function postEntriesTagsAction(Request $request, Entry $entry) 265 public function postEntriesTagsAction(Request $request, Entry $entry)
262 { 266 {
@@ -286,6 +290,8 @@ class WallabagRestController extends FOSRestController
286 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"} 290 * {"name"="entry", "dataType"="integer", "requirement"="\w+", "description"="The entry ID"}
287 * } 291 * }
288 * ) 292 * )
293 *
294 * @return Response
289 */ 295 */
290 public function deleteEntriesTagsAction(Entry $entry, Tag $tag) 296 public function deleteEntriesTagsAction(Entry $entry, Tag $tag)
291 { 297 {
@@ -306,6 +312,8 @@ class WallabagRestController extends FOSRestController
306 * Retrieve all tags. 312 * Retrieve all tags.
307 * 313 *
308 * @ApiDoc() 314 * @ApiDoc()
315 *
316 * @return Response
309 */ 317 */
310 public function getTagsAction() 318 public function getTagsAction()
311 { 319 {
@@ -328,6 +336,8 @@ class WallabagRestController extends FOSRestController
328 * {"name"="tag", "dataType"="integer", "requirement"="\w+", "description"="The tag"} 336 * {"name"="tag", "dataType"="integer", "requirement"="\w+", "description"="The tag"}
329 * } 337 * }
330 * ) 338 * )
339 *
340 * @return Response
331 */ 341 */
332 public function deleteTagAction(Tag $tag) 342 public function deleteTagAction(Tag $tag)
333 { 343 {