]> git.immae.eu Git - github/wallabag/wallabag.git/commit
api/entries: add parameter detail to exclude or include content in response 3960/head
authorKevin Decherf <kevin@kdecherf.com>
Sat, 11 May 2019 22:00:00 +0000 (00:00 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Sat, 18 May 2019 16:11:08 +0000 (18:11 +0200)
commit2c290747cb0d235392f6e5d22205a706c6474168
treefdf67f203aca096e8b61bd245b387d05cc38e20b
parentde1162b91a205a98a3f8ed01bd80285793b18380
api/entries: add parameter detail to exclude or include content in response

detail=metadata will nullify the content field of entries in order to
make smaller responses.

detail=full keeps the former behavior, it sends the content of entries.
It's the default, for backward compatibility.

Fixes #2817

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