diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-26 14:21:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-26 14:21:28 +0900 |
| commit | 077bdbfdef9dfd07c897757032bcd54d2b3ea069 (patch) | |
| tree | 1560891a9e41b02619a6f4c729319db925edad2e /src/server/api/openapi | |
| parent | i18n整理 (diff) | |
| download | sharkey-077bdbfdef9dfd07c897757032bcd54d2b3ea069.tar.gz sharkey-077bdbfdef9dfd07c897757032bcd54d2b3ea069.tar.bz2 sharkey-077bdbfdef9dfd07c897757032bcd54d2b3ea069.zip | |
Improve doc
Diffstat (limited to 'src/server/api/openapi')
| -rw-r--r-- | src/server/api/openapi/schemas.ts | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index 127a7939df..e4b917693a 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -278,6 +278,46 @@ export const schemas = { required: ['id', 'createdAt', 'name', 'type', 'datasize', 'md5'] }, + DriveFolder: { + type: 'object', + properties: { + id: { + type: 'string', + format: 'id', + description: 'The unique identifier for this Drive folder.', + example: 'xxxxxxxxxxxxxxxxxxxxxxxx', + }, + createdAt: { + type: 'string', + format: 'date-time', + description: 'The date that the Drive folder was created.' + }, + name: { + type: 'string', + description: 'The folder name.', + }, + foldersCount: { + type: 'number', + description: 'The count of child folders.', + }, + filesCount: { + type: 'number', + description: 'The count of child files.', + }, + parentId: { + type: 'string', + format: 'id', + nullable: true, + description: 'The parent folder ID of this folder.', + example: 'xxxxxxxxxxxxxxxxxxxxxxxx', + }, + parent: { + type: 'DriveFolder', + }, + }, + required: ['id', 'createdAt', 'name'] + }, + Muting: { type: 'object', properties: { |