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/i | |
| 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/i')
| -rw-r--r-- | src/server/api/endpoints/i/clear-follow-request-notification.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/favorites.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/notifications.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/pin.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/read_all_messaging_messages.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/read_all_unread_notes.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/unpin.ts | 2 | ||||
| -rw-r--r-- | src/server/api/endpoints/i/update.ts | 2 |
8 files changed, 16 insertions, 0 deletions
diff --git a/src/server/api/endpoints/i/clear-follow-request-notification.ts b/src/server/api/endpoints/i/clear-follow-request-notification.ts index 2c656965d5..38c6ec1cef 100644 --- a/src/server/api/endpoints/i/clear-follow-request-notification.ts +++ b/src/server/api/endpoints/i/clear-follow-request-notification.ts @@ -2,6 +2,8 @@ import User from '../../../../models/user'; import define from '../../define'; export const meta = { + tags: ['account', 'following'], + requireCredential: true, kind: 'account-write', diff --git a/src/server/api/endpoints/i/favorites.ts b/src/server/api/endpoints/i/favorites.ts index b9bef38c69..7ea6f7b966 100644 --- a/src/server/api/endpoints/i/favorites.ts +++ b/src/server/api/endpoints/i/favorites.ts @@ -9,6 +9,8 @@ export const meta = { 'en-US': 'Get favorited notes' }, + tags: ['account', 'notes', 'favorites'], + requireCredential: true, kind: 'favorites-read', diff --git a/src/server/api/endpoints/i/notifications.ts b/src/server/api/endpoints/i/notifications.ts index 693d279965..3d038e5d34 100644 --- a/src/server/api/endpoints/i/notifications.ts +++ b/src/server/api/endpoints/i/notifications.ts @@ -13,6 +13,8 @@ export const meta = { 'en-US': 'Get notifications.' }, + tags: ['account', 'notifications'], + requireCredential: true, kind: 'account-read', diff --git a/src/server/api/endpoints/i/pin.ts b/src/server/api/endpoints/i/pin.ts index 0b6b1b0db9..8d853d45c8 100644 --- a/src/server/api/endpoints/i/pin.ts +++ b/src/server/api/endpoints/i/pin.ts @@ -12,6 +12,8 @@ export const meta = { 'ja-JP': '指定した投稿をピン留めします。' }, + tags: ['account', 'notes'], + requireCredential: true, kind: 'account-write', diff --git a/src/server/api/endpoints/i/read_all_messaging_messages.ts b/src/server/api/endpoints/i/read_all_messaging_messages.ts index 6bc6e16b4d..bbbfa0d7b3 100644 --- a/src/server/api/endpoints/i/read_all_messaging_messages.ts +++ b/src/server/api/endpoints/i/read_all_messaging_messages.ts @@ -9,6 +9,8 @@ export const meta = { 'en-US': 'Mark all talk messages as read.' }, + tags: ['account', 'messaging'], + requireCredential: true, kind: 'account-write', diff --git a/src/server/api/endpoints/i/read_all_unread_notes.ts b/src/server/api/endpoints/i/read_all_unread_notes.ts index 16db17cb04..742c2d9908 100644 --- a/src/server/api/endpoints/i/read_all_unread_notes.ts +++ b/src/server/api/endpoints/i/read_all_unread_notes.ts @@ -9,6 +9,8 @@ export const meta = { 'en-US': 'Mark all messages as read.' }, + tags: ['account'], + requireCredential: true, kind: 'account-write', diff --git a/src/server/api/endpoints/i/unpin.ts b/src/server/api/endpoints/i/unpin.ts index 472e811562..184d46f2c3 100644 --- a/src/server/api/endpoints/i/unpin.ts +++ b/src/server/api/endpoints/i/unpin.ts @@ -12,6 +12,8 @@ export const meta = { 'ja-JP': '指定した投稿のピン留めを解除します。' }, + tags: ['account', 'notes'], + requireCredential: true, kind: 'account-write', diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index df7da46774..22e76925ba 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -20,6 +20,8 @@ export const meta = { 'en-US': 'Update myself' }, + tags: ['account'], + requireCredential: true, kind: 'account-write', |