diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-27 05:02:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-27 05:02:36 +0900 |
| commit | 33ad60b1f358b3372b99526a36e6c5d9b426c709 (patch) | |
| tree | 5da2afdc74b008d0ef526668eb36be5e93e788ef /src/server/api/endpoints | |
| parent | Update translations of CONTRIBUTING.md (#4371) (diff) | |
| download | misskey-33ad60b1f358b3372b99526a36e6c5d9b426c709.tar.gz misskey-33ad60b1f358b3372b99526a36e6c5d9b426c709.tar.bz2 misskey-33ad60b1f358b3372b99526a36e6c5d9b426c709.zip | |
Improve doc
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/hashtags/list.ts | 9 | ||||
| -rw-r--r-- | src/server/api/endpoints/hashtags/search.ts | 9 | ||||
| -rw-r--r-- | src/server/api/endpoints/hashtags/users.ts | 9 |
3 files changed, 24 insertions, 3 deletions
diff --git a/src/server/api/endpoints/hashtags/list.ts b/src/server/api/endpoints/hashtags/list.ts index 5939c10192..f454d47fed 100644 --- a/src/server/api/endpoints/hashtags/list.ts +++ b/src/server/api/endpoints/hashtags/list.ts @@ -44,7 +44,14 @@ export const meta = { '-attachedRemoteUsers', ]), }, - } + }, + + res: { + type: 'array', + items: { + type: 'Hashtag' + } + }, }; const sort: any = { diff --git a/src/server/api/endpoints/hashtags/search.ts b/src/server/api/endpoints/hashtags/search.ts index ff7ca44f51..19b2975adf 100644 --- a/src/server/api/endpoints/hashtags/search.ts +++ b/src/server/api/endpoints/hashtags/search.ts @@ -35,7 +35,14 @@ export const meta = { 'ja-JP': 'オフセット' } } - } + }, + + res: { + type: 'array', + items: { + type: 'string' + } + }, }; export default define(meta, async (ps) => { diff --git a/src/server/api/endpoints/hashtags/users.ts b/src/server/api/endpoints/hashtags/users.ts index f589c37b82..4b047aee95 100644 --- a/src/server/api/endpoints/hashtags/users.ts +++ b/src/server/api/endpoints/hashtags/users.ts @@ -44,7 +44,14 @@ export const meta = { ]), default: 'local' } - } + }, + + res: { + type: 'array', + items: { + type: 'User' + } + }, }; const sort: any = { |