Skip to content

Commit 12f00cb

Browse files
committed
Merge branch 'v11.0' into v12.0
2 parents 9615940 + c8bea68 commit 12f00cb

File tree

5 files changed

+41
-12
lines changed

5 files changed

+41
-12
lines changed

api/admin_account_operations.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: Account Operations - System Admin
44
description: |-
55
The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.
6-
version: '11'
6+
version: '11.0'
77
servers:
88
- url: https://{server}
99
variables:
@@ -263,6 +263,15 @@ components:
263263
org_name:
264264
type: string
265265
description: organization name
266+
267+
org_quota:
268+
type: integer
269+
description: Max quota an organization can use.
270+
271+
org_member_limit:
272+
type: integer
273+
description: Max user numbers an organization can use. The 'ORG_MEMBER_QUOTA_ENABLED' should be set to true in the config file.
274+
266275

267276

268277
# response schemas
@@ -2810,6 +2819,11 @@ paths:
28102819
$ref: '#/components/schemas/email'
28112820
owner_password:
28122821
$ref: '#/components/schemas/password'
2822+
quota:
2823+
$ref: '#/components/schemas/org_quota'
2824+
member_limit:
2825+
$ref: '#/components/schemas/org_member_limit'
2826+
28132827
responses:
28142828
'200':
28152829
description: OK

api/authentication.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ info:
33
title: authentication
44
description: |-
55
The official Seafile API Reference
6-
version: '11'
6+
version: '11.0'
77
tags:
88
- name: Account-Token
99
description: Access library with Account-Token
1010
- name: Repo-Token
11-
description: Access library with Repo-Token
11+
description: Access library with Repo API Token
1212
servers:
1313
- url: https://{server}
1414
variables:
@@ -28,6 +28,17 @@ components:
2828
scheme: bearer
2929
description: This is the [API-Token](/reference/authentication).
3030
bearerFormat: API-Token
31+
32+
parameters:
33+
X-SEAFILE-OTP:
34+
name: X-SEAFILE-OTP
35+
in: header
36+
schema:
37+
type: string
38+
pattern: '^\d{6}$'
39+
description: >
40+
Two-factor token (usually generated with a mobile app like the
41+
google authenticator), optional, only needed if 2FA is activated for your account.
3142
3243
schemas:
3344
AccountTokenResponse:
@@ -71,7 +82,9 @@ paths:
7182
summary: Obtain account token
7283
tags:
7384
- Account-Token
74-
description: Obtain account token with username and password
85+
description: |
86+
Generate an *Account-Token* with your username and password. This Account-Token is necessary for all the following account operations.
87+
Use the optional paramater if two-factor-authentication (2FA) is activated for your account.
7588
security: []
7689
requestBody:
7790
content:
@@ -88,6 +101,8 @@ paths:
88101
required:
89102
- username
90103
- password
104+
parameters:
105+
- $ref: "#/components/parameters/X-SEAFILE-OTP"
91106
responses:
92107
'200':
93108
description: OK

api/ping_and_info.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: Ping and Server Info
44
description: >-
55
The official Seafile API Reference (OpenAPI 3.0) - Part 'Ping and Server Info'.
6-
version: '11'
6+
version: '11.0'
77
servers:
88
- url: 'https://{server}'
99
variables:

api/repo-api-tokens.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: Via Repo-Token
44
description: |-
55
Access library Via Repo-Token
6-
version: '11'
6+
version: '11.0'
77
tags:
88
- name: Via Repo-Token
99
description: Access library Via Repo-Token

api/user_account_operations.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
title: Account Operations - User
44
description: |-
55
The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.
6-
version: '11'
6+
version: '11.0'
77
servers:
88
- url: https://{server}
99
variables:
@@ -7856,7 +7856,7 @@ paths:
78567856
/api/v2.1/repos/batch/:
78577857
post:
78587858
tags:
7859-
- Share batch operation
7859+
- Share to user/group
78607860
summary: Batch share libraries to user/group
78617861
description: Batch sharing existing libraries with user/group.
78627862
security:
@@ -7925,7 +7925,7 @@ paths:
79257925
/api2/repos/{repo_id}/dir/shared_items/p={path}:
79267926
put:
79277927
tags:
7928-
- Share folder
7928+
- Share to user/group
79297929
summary: Share a folder
79307930
description: |-
79317931
Share folders with other users and groups.
@@ -8000,7 +8000,7 @@ paths:
80008000
/api/v2.1/shared-folders/:
80018001
get:
80028002
tags:
8003-
- Share folder
8003+
- Share to user/group
80048004
summary: List shared folders
80058005
description: Return all shared folder information.
80068006
security:
@@ -8066,7 +8066,7 @@ paths:
80668066
/api2/repos/{repo_id}/dir/shared_items/?p={path}:
80678067
post:
80688068
tags:
8069-
- Share folder
8069+
- Share to user/group
80708070
summary: Update folder share permission
80718071
description: |-
80728072
Update shared folder permissions.
@@ -8104,7 +8104,7 @@ paths:
81048104

81058105
delete:
81068106
tags:
8107-
- Share folder
8107+
- Share to user/group
81088108
summary: Remove the specified shared folder
81098109
description: |-
81108110
- username, necessary if share_type is user

0 commit comments

Comments
 (0)