mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
add some missing functions
This commit is contained in:
parent
325a180ff8
commit
327b1c4284
|
@ -403,6 +403,92 @@ paths:
|
||||||
$ref: "#/definitions/ApiResponse"
|
$ref: "#/definitions/ApiResponse"
|
||||||
security:
|
security:
|
||||||
- api_key: []
|
- api_key: []
|
||||||
|
/users/{id}/quota:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- "user"
|
||||||
|
summary: "Change quota of user by ID"
|
||||||
|
description: "Change the quota of a single user"
|
||||||
|
operationId: "changeUserQuota"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
consumes:
|
||||||
|
- "application/x-www-form-urlencoded"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of user"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
- name: "quota"
|
||||||
|
in: "formData"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
description: "New quota"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"400":
|
||||||
|
description: "Invalid parameter"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "User not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
|
/users/{id}/homefolder/{folderid}:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- "user"
|
||||||
|
summary: "Change quota of user by ID"
|
||||||
|
description: "Change the quota of a single user"
|
||||||
|
operationId: "changeUserHomefolder"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
consumes:
|
||||||
|
- "application/x-www-form-urlencoded"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of user"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
- name: "folderid"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of folder"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"400":
|
||||||
|
description: "Invalid parameter"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "User or folder not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
/groups:
|
/groups:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
@ -463,6 +549,161 @@ paths:
|
||||||
$ref: "#/definitions/ApiResponse"
|
$ref: "#/definitions/ApiResponse"
|
||||||
security:
|
security:
|
||||||
- api_key: []
|
- api_key: []
|
||||||
|
/groups/{id}:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- "group"
|
||||||
|
summary: "Find group by ID"
|
||||||
|
description: "Returns a single group"
|
||||||
|
operationId: "getGroupById"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of group to return"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponseUser"
|
||||||
|
"404":
|
||||||
|
description: "Group not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- "group"
|
||||||
|
summary: "Delete group by ID"
|
||||||
|
description: "Delete a single group"
|
||||||
|
operationId: "deleteGroupById"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of group to delete"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"500":
|
||||||
|
description: "Error deleting group"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "Group not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
|
/groups/{id}/addUser:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- "group"
|
||||||
|
summary: "Add user to group"
|
||||||
|
description: "Adds an existing user as a new member of a group"
|
||||||
|
operationId: "addUserToGroup"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
consumes:
|
||||||
|
- "application/x-www-form-urlencoded"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of group"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
- name: "userid"
|
||||||
|
in: "formData"
|
||||||
|
description: "ID of user"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"400":
|
||||||
|
description: "Invalid parameter"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "User or group not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"500":
|
||||||
|
description: "Internal error"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
|
/groups/{id}/removeUser:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- "group"
|
||||||
|
summary: "Remove user from group"
|
||||||
|
description: "Remove a user as a new member of a group"
|
||||||
|
operationId: "removeUserToGroup"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
consumes:
|
||||||
|
- "application/x-www-form-urlencoded"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of group"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
- name: "userid"
|
||||||
|
in: "formData"
|
||||||
|
description: "ID of user"
|
||||||
|
required: true
|
||||||
|
type: "integer"
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"400":
|
||||||
|
description: "Invalid parameter"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "User or group not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"500":
|
||||||
|
description: "Internal error"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
/document/{id}:
|
/document/{id}:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
@ -1558,6 +1799,53 @@ paths:
|
||||||
$ref: "#/definitions/ApiResponse"
|
$ref: "#/definitions/ApiResponse"
|
||||||
security:
|
security:
|
||||||
- api_key: []
|
- api_key: []
|
||||||
|
/folder/{id}/owner/{userid}:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- "folder"
|
||||||
|
summary: "Set owner of folder"
|
||||||
|
description: "Set owner of folder"
|
||||||
|
operationId: "setFolderOwner"
|
||||||
|
produces:
|
||||||
|
- "application/json"
|
||||||
|
consumes:
|
||||||
|
- "application/x-www-form-urlencoded"
|
||||||
|
parameters:
|
||||||
|
- name: "id"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of folder."
|
||||||
|
type: "integer"
|
||||||
|
required: true
|
||||||
|
format: "int64"
|
||||||
|
- name: "userid"
|
||||||
|
in: "path"
|
||||||
|
description: "ID of user."
|
||||||
|
type: "integer"
|
||||||
|
required: true
|
||||||
|
format: "int64"
|
||||||
|
responses:
|
||||||
|
"201":
|
||||||
|
description: "successful operation"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"400":
|
||||||
|
description: "No folder or user given"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"403":
|
||||||
|
description: "No access"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"404":
|
||||||
|
description: "Folder not found"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
"500":
|
||||||
|
description: "Internal error"
|
||||||
|
schema:
|
||||||
|
$ref: "#/definitions/ApiResponse"
|
||||||
|
security:
|
||||||
|
- api_key: []
|
||||||
/categories:
|
/categories:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user