]> git.immae.eu Git - github/wallabag/wallabag.git/commit
EntryRestController: add support of expect parameter to delete action
authorKevin Decherf <kevin@kdecherf.com>
Sun, 17 Feb 2019 14:30:42 +0000 (15:30 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 20 Feb 2019 14:57:50 +0000 (15:57 +0100)
commit508302042f96ce771a36f0114acb0b3a89c18880
treef599aafa60d81b1dbf473fc7d586abc84a18d1cf
parent4e0ed3368d2bdc2fa0d330e58902e792a896be06
EntryRestController: add support of expect parameter to delete action

The expect parameter enables an application to request the whole entry
or only the id when requesting its deletion.

`expects` defaults to `entry` to prevent any API breakage.

Fixes #3711

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/ApiBundle/Controller/EntryRestController.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php