]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/ApiBundle/Controller/TagRestController.php
Retrieve tag / tags value from query or request 3103/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 9 May 2017 21:15:25 +0000 (23:15 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 9 May 2017 21:15:25 +0000 (23:15 +0200)
commit1594a79fc5eefe217ed463144857d0693b6714fa
tree7570601ba62df6dd80fabb0d06a977fec63dc2eb
parent0eb8220204953b874ebd2dbd0362973f3f45074c
Retrieve tag / tags value from query or request

It allows to request to delete a tag using query string instead of body parameter (which seems to be the standard).
Instead of breaking the previous behavior, I used a generic way to retrieve parameter (which looks into request attributes, query parameters and request parameters)
src/Wallabag/ApiBundle/Controller/TagRestController.php
tests/Wallabag/ApiBundle/Controller/TagRestControllerTest.php