From 1e6ecb13db1db77420a89d211d43067806800d7a Mon Sep 17 00:00:00 2001 From: Yury Bondarenko Date: Fri, 23 Dec 2022 14:47:30 +0100 Subject: [PATCH 1/2] Add Item search method: findItemsWithEdit --- items.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/items.md b/items.md index 3b04a4bf..fc6ce8c3 100644 --- a/items.md +++ b/items.md @@ -551,3 +551,16 @@ Return codes: * 401 Unauthorized - if you are not authenticated * 403 Forbidden - if you are not logged in with sufficient permissions * 404 Not found - if the item doesn't exist (or was already deleted) + +## Search methods +### findItemsWithEdit +**GET /api/core/items/search/findItemsWithEdit** + +The supported parameters are: +* `query`: limit the returned Items to those with metadata values matching the query terms. +* `page`, `size` [see pagination](README.md#Pagination) + +It returns the list of Items that the current user is authorized to edit + +Return codes: +* 200 OK - if the operation succeeds From 7c422668b7dea0e643c1bd69e37780c700afbaa8 Mon Sep 17 00:00:00 2001 From: Yury Bondarenko Date: Tue, 24 Jan 2023 09:14:34 +0100 Subject: [PATCH 2/2] findItemsWithEdit: add HTTP 401 response --- items.md | 1 + 1 file changed, 1 insertion(+) diff --git a/items.md b/items.md index fc6ce8c3..3ad87822 100644 --- a/items.md +++ b/items.md @@ -564,3 +564,4 @@ It returns the list of Items that the current user is authorized to edit Return codes: * 200 OK - if the operation succeeds +* 401 Unauthorized - if you are not authenticated