Skip to content

Commit

Permalink
Update repo-api-tokens.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
孙永强 committed Sep 9, 2024
1 parent 9b92926 commit 642884c
Showing 1 changed file with 30 additions and 9 deletions.
39 changes: 30 additions & 9 deletions api/repo-api-tokens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ components:
- r
- rw

path:
type: string
example: '/Folder'

operation_dir:
type: object
properties:
Expand Down Expand Up @@ -268,6 +272,26 @@ components:
- parent_dir
- dirents

share_link_permission:
type: object
description: Operation permission
properties:
can_edit:
type: boolean
enum:
- false
- true
can_download:
type: boolean
enum:
- true
- false
can_upload:
type: boolean
enum:
- true
- false

# response
ResponseSuccess:
type: object
Expand Down Expand Up @@ -701,7 +725,7 @@ paths:
security:
- AccountTokenAuth: []
parameters:
- $ref: '#/components/parameters/file_p'
- $ref: '#/components/parameters/file_path'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -775,7 +799,7 @@ paths:
"commit_id": "d6c213abcaf50ae1f5e775eaf1808b4c80c9ed61"
}

/api/v2.1/via-repo-token/move-folder-merge/:
/api/v2.1/via-repo-token/move-dir/:
post:
tags:
- Via Repo-Token
Expand Down Expand Up @@ -961,13 +985,10 @@ paths:
schema:
type: object
properties:
path:
type: string
description: path of folder/file
example: "/folder"
permissions:
type: string
example: '{"can_edit":false,"can_download":false,"can_upload":false}'
permissions:
$ref: '#/components/schemas/share_link_permission'
path:
$ref: '#/components/schemas/path'
responses:
'200':
description: OK
Expand Down

0 comments on commit 642884c

Please sign in to comment.