diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-02-23 11:20:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-23 11:20:58 +0900 |
| commit | 52774bbe6402aee076b2e0648bd1f4764924da8a (patch) | |
| tree | a0e3f34ce6d000dd880a6a6c152e98e139076a14 /src/server/api/endpoints/drive/files.ts | |
| parent | 投稿を削除したときにお気に入りからも削除するように (diff) | |
| download | sharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.tar.gz sharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.tar.bz2 sharkey-52774bbe6402aee076b2e0648bd1f4764924da8a.zip | |
Introduce OpenAPI specs (#4351)
* wip
* wip
* wip
* Update index.ts
* Update gen-openapi-spec.ts
* Update api.ja-JP.md
* Fix
* Improve doc
* Update gen-openapi-spec.ts
* Update redoc.html
* Improve doc
* Update gen-openapi-spec.ts
* Improve doc
* Update CHANGELOG.md
Diffstat (limited to 'src/server/api/endpoints/drive/files.ts')
| -rw-r--r-- | src/server/api/endpoints/drive/files.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/server/api/endpoints/drive/files.ts b/src/server/api/endpoints/drive/files.ts index 1c12f0dc07..f108e820e7 100644 --- a/src/server/api/endpoints/drive/files.ts +++ b/src/server/api/endpoints/drive/files.ts @@ -9,6 +9,8 @@ export const meta = { 'en-US': 'Get files of drive.' }, + tags: ['drive'], + requireCredential: true, kind: 'drive-read', @@ -38,7 +40,14 @@ export const meta = { type: { validator: $.optional.str.match(/^[a-zA-Z\/\-\*]+$/) } - } + }, + + res: { + type: 'array', + items: { + type: 'DriveFile', + }, + }, }; export default define(meta, async (ps, user) => { |