]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Fixes [wallabag/wallabag#2611] Add a basic Search REST endpoint
authorCraig Roberts <craig@craig0990.co.uk>
Mon, 9 Apr 2018 09:24:45 +0000 (17:24 +0800)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 22 Jan 2019 19:42:24 +0000 (20:42 +0100)
commitb32057980e33e7ddd93480017496a589006b8260
tree901d98556d378b68c2e654f3c892616b302331aa
parent3527c300215e6e6010efb8bb840b8b6f5c63a1cc
Fixes [wallabag/wallabag#2611] Add a basic Search REST endpoint

- Adds a new `search` key to `src/Wallabag/ApiBundle/Resources/config/routing_rest.yml`
- Reuses the `getBuilderForSearchByUser` method from the EntryRepository
- Supports, `term`, `page`, and `perPage` query parameters
- Some very basic tests
src/Wallabag/ApiBundle/Controller/SearchRestController.php [new file with mode: 0644]
src/Wallabag/ApiBundle/Resources/config/routing_rest.yml
tests/Wallabag/ApiBundle/Controller/SearchRestControllerTest.php [new file with mode: 0644]