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/openapi | |
| parent | Update translations of CONTRIBUTING.md (#4371) (diff) | |
| download | sharkey-33ad60b1f358b3372b99526a36e6c5d9b426c709.tar.gz sharkey-33ad60b1f358b3372b99526a36e6c5d9b426c709.tar.bz2 sharkey-33ad60b1f358b3372b99526a36e6c5d9b426c709.zip | |
Improve doc
Diffstat (limited to 'src/server/api/openapi')
| -rw-r--r-- | src/server/api/openapi/schemas.ts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index e4b917693a..144ea51e41 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -361,4 +361,48 @@ export const schemas = { }, required: ['id', 'createdAt', 'blockee'] }, + + Hashtag: { + type: 'object', + properties: { + tag: { + type: 'string', + description: 'The hashtag name. No # prefixed.', + example: 'misskey', + }, + mentionedUsersCount: { + type: 'number', + description: 'Number of all users using this hashtag.' + }, + mentionedLocalUsersCount: { + type: 'number', + description: 'Number of local users using this hashtag.' + }, + mentionedRemoteUsersCount: { + type: 'number', + description: 'Number of remote users using this hashtag.' + }, + attachedUsersCount: { + type: 'number', + description: 'Number of all users who attached this hashtag to profile.' + }, + attachedLocalUsersCount: { + type: 'number', + description: 'Number of local users who attached this hashtag to profile.' + }, + attachedRemoteUsersCount: { + type: 'number', + description: 'Number of remote users who attached this hashtag to profile.' + }, + }, + required: [ + 'tag', + 'mentionedUsersCount', + 'mentionedLocalUsersCount', + 'mentionedRemoteUsersCount', + 'attachedUsersCount', + 'attachedLocalUsersCount', + 'attachedRemoteUsersCount', + ] + }, }; |