From 52774bbe6402aee076b2e0648bd1f4764924da8a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 23 Feb 2019 11:20:58 +0900 Subject: 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 --- src/server/api/endpoints/i/clear-follow-request-notification.ts | 2 ++ src/server/api/endpoints/i/favorites.ts | 2 ++ src/server/api/endpoints/i/notifications.ts | 2 ++ src/server/api/endpoints/i/pin.ts | 2 ++ src/server/api/endpoints/i/read_all_messaging_messages.ts | 2 ++ src/server/api/endpoints/i/read_all_unread_notes.ts | 2 ++ src/server/api/endpoints/i/unpin.ts | 2 ++ src/server/api/endpoints/i/update.ts | 2 ++ 8 files changed, 16 insertions(+) (limited to 'src/server/api/endpoints/i') 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', -- cgit v1.2.3-freya