proper quote text/plain output
This commit is contained in:
89
SHARING.md
89
SHARING.md
@@ -145,7 +145,7 @@ Shows what kind of ShareTypes are supported
|
||||
```
|
||||
curl -u user:pass -H "accept: text/plain" -d "" http://localhost:5232/.sharing/v1/all/info
|
||||
ApiVersion=1
|
||||
Status=success
|
||||
Status='success'
|
||||
FeatureEnabledCollectionByMap=True
|
||||
PermittedCreateCollectionByMap=True
|
||||
FeatureEnabledCollectionByToken=True
|
||||
@@ -183,29 +183,28 @@ Authenticated user as `Owner` has at least read access to `PathMapped`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Owner |
|
||||
| - | - |
|
||||
| Owner | implicit(by authentication) |
|
||||
| PathMapped | mandatory |
|
||||
| User | optional(default:owner) |
|
||||
| Permissions | optional(default:r) |
|
||||
| Enabled | optional(owner) |
|
||||
| Hidden | optional(owner) |
|
||||
| Properties | optional |
|
||||
| Parameter | Type | Requirement |
|
||||
| - | - | - |
|
||||
| PathMapped | str | mandatory |
|
||||
| User | str | optional(default:owner) |
|
||||
| Permissions | str | optional(default:r) |
|
||||
| Enabled | bool | optional(owner/default:False) |
|
||||
| Hidden | bool | optional(owner/default:True) |
|
||||
| Properties | str | optional |
|
||||
|
||||
* Output
|
||||
|
||||
| Parameter | Value |
|
||||
| Parameter | Type | Value |
|
||||
| - | - |
|
||||
| PathOrToken | (autogenerated token) |
|
||||
| PathOrToken | str | (autogenerated token) |
|
||||
|
||||
* Example: TEXT
|
||||
|
||||
```
|
||||
curl -u user:pass -d "PathMapped=/user/testcalendar1/" http://localhost:5232/.sharing/v1/token/create
|
||||
ApiVersion=1
|
||||
Status=success
|
||||
PathOrToken=v1/VQR7AmsVRi2ZlFj_JwGpFx-ES5Goyku-gP_YkLh1zUw=
|
||||
Status='success'
|
||||
PathOrToken='v1/VQR7AmsVRi2ZlFj_JwGpFx-ES5Goyku-gP_YkLh1zUw='
|
||||
```
|
||||
|
||||
###### API Hook "map/create"
|
||||
@@ -220,15 +219,14 @@ Provided `User` has at least read access to `PathOrToken`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Value |
|
||||
| Parameter | Type | Requirement |
|
||||
| - | - |
|
||||
| Owner | implicit(by authentication) |
|
||||
| PathOrToken | mandatory |
|
||||
| PathMapped | mandatory |
|
||||
| User | mandatory |
|
||||
| Permissions | optional(default:r) |
|
||||
| Enabled | optional(owner) |
|
||||
| Hidden | optional(owner) |
|
||||
| PathOrToken | str | mandatory |
|
||||
| PathMapped | str | mandatory |
|
||||
| User | str | mandatory |
|
||||
| Permissions | str | optional(default:r) |
|
||||
| Enabled | bool | optional(owner/default:False) |
|
||||
| Hidden | bool | optional(owner/default:True) |
|
||||
| Properties | optional |
|
||||
|
||||
* Output: result status
|
||||
@@ -252,12 +250,10 @@ Authenticated user as `Owner` or `User`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Filter |
|
||||
| - | - |
|
||||
| Owner | implicit(by authentication) |
|
||||
| User | implicit(by authentication) |
|
||||
| PathOrToken | optional |
|
||||
| PathMapped | optional |
|
||||
| Parameter | Type | Used for |
|
||||
| - | - | - |
|
||||
| PathOrToken | str | optional |
|
||||
| PathMapped | str | optional |
|
||||
|
||||
* Output: plain/csv/json
|
||||
|
||||
@@ -265,8 +261,8 @@ Authenticated user as `Owner` or `User`
|
||||
|
||||
```
|
||||
curl -H "accept: text/csv" -u owner:pass -d "" http://localhost:5232/.sharing/v1/map/list
|
||||
ShareType,PathOrToken,PathMapped,Owner,User,Permissions,EnabledByOwner,EnabledByUser,HiddenByOwner,HiddenByUser,TimestampCreated,TimestampUpdated
|
||||
map,/user/cal1-from-owner/,/owner/cal1/,owner,user,r,False,False,True,True,1771962120,1771962120
|
||||
ShareType,PathOrToken,PathMapped,Owner,User,Permissions,EnabledByOwner,EnabledByUser,HiddenByOwner,HiddenByUser,TimestampCreated,TimestampUpdated,Properties
|
||||
map,/user/cal1-from-owner/,/owner/cal1/,owner,user,r,False,False,True,True,1771962120,1771962120,{}
|
||||
```
|
||||
|
||||
|
||||
@@ -280,9 +276,9 @@ Authenticated user is `Owner`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Type | Owner | User |
|
||||
| - | - | - | - |
|
||||
| PathOrToken | selector | mandatory | not-permitted |
|
||||
| Parameter | Type | Used for | as Owner | as User |
|
||||
| - | - | - | - | - |
|
||||
| PathOrToken | str | selection | mandatory | not-permitted |
|
||||
|
||||
* Output: result status
|
||||
|
||||
@@ -298,16 +294,15 @@ Authenticated user is `Owner` or `User`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Type | Owner | User |
|
||||
| - | - | - | - |
|
||||
| PathOrToken | selector | mandatory | mandatory |
|
||||
| Owner | by authentication | not-permitted | not-permitted |
|
||||
| PathMapped | adjustable | optional | not-permitted |
|
||||
| User | adjustable | optional | not-permitted |
|
||||
| Permissions | adjustable | optional | not-permitted |
|
||||
| Enabled | adjustable | optional(owner) | optional(user) |
|
||||
| Hidden | adjustable | optional(owner) | optional(user) |
|
||||
| Properties | adjustable | optional | optional |
|
||||
| Parameter | Type | Used for | Owner | User |
|
||||
| - | - | - | - | - |
|
||||
| PathOrToken | str | selection | mandatory | mandatory |
|
||||
| PathMapped | str | adjust | optional | not-permitted |
|
||||
| User | str | adjust | optional | not-permitted |
|
||||
| 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 |
|
||||
|
||||
* Output: result status
|
||||
|
||||
@@ -321,9 +316,9 @@ Authenticated user is `Owner` or `User`
|
||||
|
||||
* Input
|
||||
|
||||
| Parameter | Type | Owner | User |
|
||||
| - | - | - | - |
|
||||
| PathOrToken | selector | mandatory | mandatory |
|
||||
| Parameter | Type | Used for | Owner | User |
|
||||
| - | - | - | - | - |
|
||||
| PathOrToken | selection | mandatory | mandatory |
|
||||
|
||||
* Output: result status
|
||||
|
||||
@@ -340,7 +335,7 @@ Status=success
|
||||
```
|
||||
curl -u owner:pass -d '{"PathOrToken": "/user/cal1-from-owner/", "PathMapped": "/owner/cal1/", "User": "user"} http://localhost:5232/.sharing/v1/map/unhide
|
||||
ApiVersion=1
|
||||
Status=success
|
||||
Status='success'
|
||||
```
|
||||
|
||||
## Properties Overlay
|
||||
|
||||
Reference in New Issue
Block a user