Skip to content

Commit

Permalink
Remove endpoint descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Jun 8, 2021
1 parent d6267f7 commit 6b312f7
Show file tree
Hide file tree
Showing 198 changed files with 0 additions and 1,904 deletions.
3 changes: 0 additions & 3 deletions src/server/api/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ export type Param = {
transform?: any;
default?: any;
deprecated?: boolean;
desc?: { [key: string]: string };
ref?: string;
};

export interface IEndpointMeta {
stability?: string; //'deprecated' | 'experimental' | 'stable';

desc?: { [key: string]: string };

tags?: string[];

params?: {
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/abuse-user-reports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { AbuseUserReports } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';

export const meta = {
desc: {
'ja-JP': '通報一覧を表示します。',
'en-US': 'Show list of abuse user reports.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/accounts/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { Users } from '../../../../../models';
import { signup } from '../../../common/signup';

export const meta = {
desc: {
'ja-JP': 'アカウントを作成します。',
'en-US': 'Create a account.'
},

tags: ['admin'],

params: {
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/announcements/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Announcements } from '../../../../../models';
import { genId } from '@/misc/gen-id';

export const meta = {
desc: {
'ja-JP': 'アナウンスを作成します。',
'en-US': 'Create a announcement.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/announcements/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ export const meta = {
requireCredential: true as const,
requireModerator: true,

desc: {
'ja-JP': 'アナウンスを削除します。',
'en-US': 'Delete a announcement.'
},

params: {
id: {
validator: $.type(ID)
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/announcements/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { Announcements, AnnouncementReads } from '../../../../../models';
import { makePaginationQuery } from '../../../common/make-pagination-query';

export const meta = {
desc: {
'ja-JP': 'アナウンスのリストを表示します。',
'en-US': 'List announcements.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/announcements/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { Announcements } from '../../../../../models';
import { ApiError } from '../../../error';

export const meta = {
desc: {
'ja-JP': 'アナウンスの内容を変更します。',
'en-US': 'Update a annoucement.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
9 changes: 0 additions & 9 deletions src/server/api/endpoints/admin/delete-all-files-of-a-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { DriveFiles } from '../../../../models';
import { ID } from '@/misc/cafy-id';

export const meta = {
desc: {
'ja-JP': '対象のユーザーのファイルを全て削除します。',
'en-US': 'Delete all files to specified user.'
},

tags: ['admin'],

requireCredential: true as const,
Expand All @@ -18,10 +13,6 @@ export const meta = {
params: {
userId: {
validator: $.type(ID),
desc: {
'ja-JP': '対象のユーザーID',
'en-US': 'The user ID which you want to suspend'
}
},
}
};
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/delete-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import define from '../../define';
import { Logs } from '../../../../models';

export const meta = {
desc: {
'ja-JP': 'ログを全て削除します。',
'en-US': 'Delete all logs.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/drive/clean-remote-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import define from '../../../define';
import { createCleanRemoteFilesJob } from '../../../../../queue';

export const meta = {
desc: {
'ja-JP': 'キャッシュされたリモートファイルをすべて削除します。',
'en-US': 'Deletes all cached remote files.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/drive/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { deleteFile } from '../../../../../services/drive/delete-file';
import { DriveFiles } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': '使用されていないユーザーのファイルを削除します。',
'en-US': 'Delete the unused user\'s files.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/drive/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ import { makePaginationQuery } from '../../../common/make-pagination-query';
import { ID } from '@/misc/cafy-id';

export const meta = {
desc: {
'ja-JP': '管理用のドライブの一覧を表示します。',
'en-US': 'Displays a list of management drives.'
},

tags: ['admin'],

requireCredential: false as const,
Expand Down
4 changes: 0 additions & 4 deletions src/server/api/endpoints/admin/emoji/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import rndstr from 'rndstr';
import { publishBroadcastStream } from '../../../../../services/stream';

export const meta = {
desc: {
'ja-JP': 'カスタム絵文字を追加します。'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/emoji/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ import { ID } from '@/misc/cafy-id';
import uploadFromUrl from '../../../../../services/drive/upload-from-url';

export const meta = {
desc: {
'ja-JP': '選択したカスタム絵文字をコピーします。',
'en-US': 'Copies the selected custom emoji.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/emoji/list-remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import { makePaginationQuery } from '../../../common/make-pagination-query';
import { ID } from '@/misc/cafy-id';

export const meta = {
desc: {
'ja-JP': 'リモートのカスタム絵文字一覧を取得します。',
'en-US': 'Gets a list of remote custom emojis.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/emoji/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import { ID } from '@/misc/cafy-id';
import { Emoji } from '../../../../../models/entities/emoji';

export const meta = {
desc: {
'ja-JP': 'カスタム絵文字一覧を取得します。',
'en-US': 'List custom emojis.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
4 changes: 0 additions & 4 deletions src/server/api/endpoints/admin/emoji/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { insertModerationLog } from '../../../../../services/insert-moderation-l
import { ApiError } from '../../../error';

export const meta = {
desc: {
'ja-JP': 'カスタム絵文字を削除します。'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
4 changes: 0 additions & 4 deletions src/server/api/endpoints/admin/emoji/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import { getConnection } from 'typeorm';
import { ApiError } from '../../../error';

export const meta = {
desc: {
'ja-JP': 'カスタム絵文字を更新します。'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/federation/delete-all-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { deleteFile } from '../../../../../services/drive/delete-file';
import { DriveFiles } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': '指定したドメインのファイルを全て削除します。',
'en-US': 'Deletes all files in the specified domain.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import deleteFollowing from '../../../../../services/following/delete';
import { Followings, Users } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': '指定したドメインの全ユーザーのフォローを全て解除します。',
'en-US': 'Unfollow all users in the specified domain.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/federation/update-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Instances } from '../../../../../models';
import { toPuny } from '@/misc/convert-host';

export const meta = {
desc: {
'ja-JP': '指定したドメインのアクティビティの配信を停止するかを選択します。',
'en-US': 'Select whether to undeliver the activity for the specified domain.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/get-table-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ export const meta = {
requireCredential: true as const,
requireModerator: true,

desc: {
'ja-JP': 'テーブル情報を取得します。',
'en-US': 'Get table stats'
},

tags: ['admin'],

params: {
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { RegistrationTickets } from '../../../../models';
import { genId } from '@/misc/gen-id';

export const meta = {
desc: {
'ja-JP': '招待コードを発行します。',
'en-US': 'Issue an invitation code.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Logs } from '../../../../models';
import { Brackets } from 'typeorm';

export const meta = {
desc: {
'ja-JP': 'ログを表示します。',
'en-US': 'Show logs.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
9 changes: 0 additions & 9 deletions src/server/api/endpoints/admin/moderators/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import define from '../../../define';
import { Users } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': '指定したユーザーをモデレーターにします。',
'en-US': 'Mark a user as moderator.'
},

tags: ['admin'],

requireCredential: true as const,
Expand All @@ -17,10 +12,6 @@ export const meta = {
params: {
userId: {
validator: $.type(ID),
desc: {
'ja-JP': '対象のユーザーID',
'en-US': 'The user ID'
}
},
}
};
Expand Down
9 changes: 0 additions & 9 deletions src/server/api/endpoints/admin/moderators/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import define from '../../../define';
import { Users } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': '指定したユーザーをモデレーター解除します。',
'en-US': 'Unmark a user as moderator.'
},

tags: ['admin'],

requireCredential: true as const,
Expand All @@ -17,10 +12,6 @@ export const meta = {
params: {
userId: {
validator: $.type(ID),
desc: {
'ja-JP': '対象のユーザーID',
'en-US': 'The user ID'
}
},
}
};
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/promo/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import { getNote } from '../../../common/getters';
import { PromoNotes } from '../../../../../models';

export const meta = {
desc: {
'ja-JP': 'プロモーションを作成します。',
'en-US': 'Create a promotion.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/queue/clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { destroy } from '../../../../../queue';
import { insertModerationLog } from '../../../../../services/insert-moderation-log';

export const meta = {
desc: {
'ja-JP': 'ジョブキューを全て削除します。',
'en-US': 'Delete all job queues.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/queue/deliver-delayed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { URL } from 'url';
import define from '../../../define';

export const meta = {
desc: {
'ja-JP': '他サーバーへ送るキューの遅延一覧を返します。',
'en-US': 'Returns a list of delays in queues sent to other servers.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
5 changes: 0 additions & 5 deletions src/server/api/endpoints/admin/queue/inbox-delayed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import define from '../../../define';
import { inboxQueue } from '../../../../../queue';

export const meta = {
desc: {
'ja-JP': 'このサーバーへのキューの遅延一覧を返します。',
'en-US': 'Returns a list of queue delays to this server.'
},

tags: ['admin'],

requireCredential: true as const,
Expand Down
Loading

0 comments on commit 6b312f7

Please sign in to comment.