From 293ee0625077da6b588f6fc0ed173967aeab0d58 Mon Sep 17 00:00:00 2001 From: eskander Date: Wed, 21 Aug 2024 17:02:46 +0300 Subject: [PATCH 1/2] [DURACOM-222] Expose the item submitter over the REST --- items.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/items.md b/items.md index 97e9461..ac95af2 100644 --- a/items.md +++ b/items.md @@ -564,6 +564,18 @@ Return codes: * 403 Forbidden - if you are not logged in with sufficient permissions and versioning is not public * 404 Not found - if the item doesn't exist +### Get Item Submitter +**/api/core/items/<:uuid>/submitter** + +It returns the submitter of the item + +Status codes: +* 200 OK - returning the submitter +* 204 No Content - if there is no submitter for the specified item +* 401 Unauthorized - if you are not authenticated and don't have permissions on the item +* 403 Forbidden - if you are not logged in with sufficient permissions +* 404 Not found - if the item doesn't exist + ## Deleting an item **DELETE /api/core/items/<:uuid>** From 710bda9dabf3856c00708f378206903082424df2 Mon Sep 17 00:00:00 2001 From: eskander Date: Mon, 2 Sep 2024 11:39:20 +0300 Subject: [PATCH 2/2] [DURACOM-222] refactoring --- items.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/items.md b/items.md index ac95af2..9bba1ee 100644 --- a/items.md +++ b/items.md @@ -571,9 +571,7 @@ It returns the submitter of the item Status codes: * 200 OK - returning the submitter -* 204 No Content - if there is no submitter for the specified item -* 401 Unauthorized - if you are not authenticated and don't have permissions on the item -* 403 Forbidden - if you are not logged in with sufficient permissions +* 204 No Content - if you are not authenticated or you have no read access on that submitter. * 404 Not found - if the item doesn't exist ## Deleting an item