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
This commit is contained in:
Craig Roberts
2018-04-09 17:24:45 +08:00
committed by Jeremy Benoist
parent 3527c30021
commit b32057980e
3 changed files with 169 additions and 0 deletions

View File

@ -3,6 +3,11 @@ entry:
resource: "WallabagApiBundle:EntryRest"
name_prefix: api_
search:
type: rest
resource: "WallabagApiBundle:SearchRest"
name_prefix: api_
tag:
type: rest
resource: "WallabagApiBundle:TagRest"