mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add route to get settings for a share
Returns the client settings of the creator.
This commit is contained in:
@ -2304,7 +2304,7 @@ paths:
|
||||
/share/attachment/{id}/preview:
|
||||
head:
|
||||
operationId: "share-attach-check-preview"
|
||||
tags: [ Attachment ]
|
||||
tags: [ Share ]
|
||||
summary: Get the headers to a preview image of an attachment file.
|
||||
description: |
|
||||
Checks if an image file showing a preview of the attachment is
|
||||
@ -2320,7 +2320,7 @@ paths:
|
||||
description: NotFound
|
||||
get:
|
||||
operationId: "share-attach-get-preview"
|
||||
tags: [ Attachment ]
|
||||
tags: [ Share ]
|
||||
summary: Get a preview image of an attachment file.
|
||||
description: |
|
||||
Gets a image file showing a preview of the attachment. Usually
|
||||
@ -2347,6 +2347,37 @@ paths:
|
||||
schema:
|
||||
type: string
|
||||
format: binary
|
||||
/share/clientSettings/{clientId}:
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/clientId"
|
||||
get:
|
||||
operationId: "share-clientsettings-get"
|
||||
tags: [ Share ]
|
||||
summary: Return the client settings of current user
|
||||
description: |
|
||||
Returns the settings for the share. This is the settings of
|
||||
the user who created the share. It is created by merging the
|
||||
client settings for the collective and the user's own client
|
||||
settings into one json structure.
|
||||
|
||||
Null, Array, Boolean, String and Number are treated as values,
|
||||
and values from the users settings completely replace values
|
||||
from the collective's settings.
|
||||
|
||||
The `clientId` is an identifier to a client application. It
|
||||
returns a JSON structure. The server doesn't care about the
|
||||
actual data, since it is meant to be interpreted by clients.
|
||||
security:
|
||||
- shareTokenHeader: []
|
||||
responses:
|
||||
422:
|
||||
description: BadRequest
|
||||
200:
|
||||
description: Ok
|
||||
content:
|
||||
application/json:
|
||||
schema: {}
|
||||
|
||||
|
||||
/admin/user/resetPassword:
|
||||
post:
|
||||
|
Reference in New Issue
Block a user