diff options
author | Craig Roberts <craig@craig0990.co.uk> | 2018-04-09 17:24:45 +0800 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-22 20:42:24 +0100 |
commit | b32057980e33e7ddd93480017496a589006b8260 (patch) | |
tree | 901d98556d378b68c2e654f3c892616b302331aa /src/Wallabag/ApiBundle/Resources | |
parent | 3527c300215e6e6010efb8bb840b8b6f5c63a1cc (diff) | |
download | wallabag-b32057980e33e7ddd93480017496a589006b8260.tar.gz wallabag-b32057980e33e7ddd93480017496a589006b8260.tar.zst wallabag-b32057980e33e7ddd93480017496a589006b8260.zip |
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
Diffstat (limited to 'src/Wallabag/ApiBundle/Resources')
-rw-r--r-- | src/Wallabag/ApiBundle/Resources/config/routing_rest.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Resources/config/routing_rest.yml b/src/Wallabag/ApiBundle/Resources/config/routing_rest.yml index c0283e71..06e62c37 100644 --- a/src/Wallabag/ApiBundle/Resources/config/routing_rest.yml +++ b/src/Wallabag/ApiBundle/Resources/config/routing_rest.yml | |||
@@ -3,6 +3,11 @@ entry: | |||
3 | resource: "WallabagApiBundle:EntryRest" | 3 | resource: "WallabagApiBundle:EntryRest" |
4 | name_prefix: api_ | 4 | name_prefix: api_ |
5 | 5 | ||
6 | search: | ||
7 | type: rest | ||
8 | resource: "WallabagApiBundle:SearchRest" | ||
9 | name_prefix: api_ | ||
10 | |||
6 | tag: | 11 | tag: |
7 | type: rest | 12 | type: rest |
8 | resource: "WallabagApiBundle:TagRest" | 13 | resource: "WallabagApiBundle:TagRest" |