diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-22 05:16:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-22 05:16:27 +0900 |
| commit | 3aece449e4a2134381d69754716906353c2dd8bf (patch) | |
| tree | 6effa7785bb5f34b79696f4734d236267cb5f361 /src/server/api/endpoints/i | |
| parent | #2939 part 3 (#2976) (diff) | |
| download | sharkey-3aece449e4a2134381d69754716906353c2dd8bf.tar.gz sharkey-3aece449e4a2134381d69754716906353c2dd8bf.tar.bz2 sharkey-3aece449e4a2134381d69754716906353c2dd8bf.zip | |
Improve API definitions
Diffstat (limited to 'src/server/api/endpoints/i')
| -rw-r--r-- | src/server/api/endpoints/i/pin.ts | 5 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/unpin.ts | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/server/api/endpoints/i/pin.ts b/src/server/api/endpoints/i/pin.ts index bf729ca091..44c7fe77b8 100644 --- a/src/server/api/endpoints/i/pin.ts +++ b/src/server/api/endpoints/i/pin.ts @@ -5,6 +5,8 @@ import { addPinned } from '../../../../services/i/pin'; import getParams from '../../get-params'; export const meta = { + stability: 'stable', + desc: { 'ja-JP': '指定した投稿をピン留めします。' }, @@ -16,7 +18,8 @@ export const meta = { params: { noteId: $.type(ID).note({ desc: { - 'ja-JP': '対象の投稿のID' + 'ja-JP': '対象の投稿のID', + 'en-US': 'Target note ID' } }) } diff --git a/src/server/api/endpoints/i/unpin.ts b/src/server/api/endpoints/i/unpin.ts index 2a81993e4b..6c20e2771d 100644 --- a/src/server/api/endpoints/i/unpin.ts +++ b/src/server/api/endpoints/i/unpin.ts @@ -5,6 +5,8 @@ import { removePinned } from '../../../../services/i/pin'; import getParams from '../../get-params'; export const meta = { + stability: 'stable', + desc: { 'ja-JP': '指定した投稿のピン留めを解除します。' }, @@ -16,7 +18,8 @@ export const meta = { params: { noteId: $.type(ID).note({ desc: { - 'ja-JP': '対象の投稿のID' + 'ja-JP': '対象の投稿のID', + 'en-US': 'Target note ID' } }) } |