From 91a47520efee29628eb37dc8054a7a49413d01ad Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sat, 30 May 2026 09:24:12 +0200 Subject: [PATCH] minor review --- SHARING.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/SHARING.md b/SHARING.md index 93d29204..6fd52791 100644 --- a/SHARING.md +++ b/SHARING.md @@ -246,6 +246,7 @@ Can be selected by `HTTP_ACCEPT` - default is equal to provided `CONTENT_TYPE` * `Enabled`: owner/user selected by authentication * `Hidden`: owner/user selected by authentication * `Properties`: properties to overlay + * `Actions`: specific configuration ### API Hooks @@ -315,7 +316,8 @@ Create a share by mapping a collection of an `Owner` to a token. | Permissions | str | optional (default:rp) | | Enabled | bool | optional (owner/default:False) | | Hidden | bool | optional (owner/default:True) | -| Properties | str | optional | +| Properties | str(dict) | optional | +| Actions | str(dict) | optional | * Output: text/plain|application/json @@ -364,8 +366,8 @@ Create a share by mapping a collection of an `Owner` to an `User`. | Permissions | str | optional (default:r) | | Enabled | bool | optional (owner/default:False) | | Hidden | bool | optional (owner/default:True) | -| Properties | optional | -| Actions | optional | +| Properties | str(dict) | optional | +| Actions | str(dict) | optional | * Output: text/plain|application/json @@ -519,8 +521,8 @@ Execute delete+create in case `PathOrToken` needs to be changed. | Permissions | str | adjust | optional | not-permitted | | Enabled | bool | adjust | optional(owner) | optional(user) | | Hidden | bool | adjust | optional(owner) | optional(user) | -| Properties | str | adjust | optional | optional | -| Actions | str | adjust | optional | not-permitted | +| Properties | str(dict) | adjust | optional | optional | +| Actions | str(dict) | adjust | optional | not-permitted | * Output: text/plain|application/json @@ -677,7 +679,6 @@ curl -u user:$userpw -d "$xml_pfc" -X PROPFIND http://localhost:5232/user/cal1-f Owner can create for itself or for particular user a virtual bday collection from an existing addressbook. - ### Examples Preconditions: @@ -689,6 +690,8 @@ Preconditions: #### Examples using API +##### Mapping + * Create as *map* ```bash @@ -714,6 +717,8 @@ END:VCALENDAR Via WebUI an additional (virtual) calendar collection appears +##### Mapping as token + * Create as *token* ```bash @@ -724,7 +729,7 @@ Status='success' PathOrToken='/.token/v1/lqqwqhZYTGi9uSPsixien_8G5jiSK0FfhNFRGG_t8UA0/' ``` - * Fetch *map* + * Fetch *token* ```bash ## Fetch VCALENDAR auto-created from VADDRESSBOOK